How a secret message QR code works

You write a note and, if you want, choose a password. The page packs the note into a short code, encrypts it in your browser when there is a password, and turns the result into a QR code. There is no account and no database: the note lives entirely in the code.

You choose one of two forms:

  • Link: the code holds https://link2qr.com/s followed by # and the packed note. Scanning it opens the reader page, which asks for the password and shows the note. Browsers do not send the part after # to the server, so the note itself never reaches Link2QR.
  • Offline: the code holds the text L2QS1: followed by the packed note, with no web address. It is meant for paper backups that should not depend on a website. To read it, scan it and paste the text into link2qr.com/s, or upload a photo of the code there.

The encryption

With a password, the note is encrypted with AES-256-GCM using the browser's built-in Web Crypto API. The key is derived from your password with PBKDF2-HMAC-SHA-256, a fresh random 16-byte salt, and 600,000 iterations, the count the OWASP Password Storage Cheat Sheet recommends for PBKDF2-HMAC-SHA256. Every note gets a new random 12-byte IV. When it makes the note shorter, the text is compressed with deflate before it is encrypted.

AES-GCM includes a 16-byte authentication tag, so any changed byte makes decryption fail instead of producing garbled text. The version, flags, and iteration count at the start of the code are covered by that tag too. When opening a note, the reader page only accepts iteration counts from 600,000 to 2,000,000, so a crafted code cannot weaken the key derivation or freeze the page.

Without a password the note is only packed, not encrypted. The tool warns you and labels the button "Create unencrypted QR code" so this is never a surprise.

Choosing a password

The security of an encrypted note depends almost entirely on the password, because anyone who has the code can try guesses offline. The tool rates the password as you type: under 8 characters is too short, 8 to 13 is usable, and 14 or more is better. Four or five random words make a long password that is still easy to type. Do not reuse a password you use anywhere else, and share it through a different channel than the code, for example say it out loud or send it in a separate app.

The password cannot be recovered. After the code is made, the tool clears the password from the page, and the Test decrypt box lets you type it again to catch a typo before you print or share.

Good uses and limits

  • A love note, a puzzle clue, or a gift message hidden in a card or a scavenger hunt.
  • An offline paper note you want to keep out of cloud storage and email.
  • A message for a specific person, with the password shared in person.

A QR code is not a safe. A photo of it can be copied by anyone who sees it, so a short or common password can be guessed with enough time. For anything that would be harmful if exposed, use a long random password, and keep the printed code somewhere private.

Before you rely on a printed code

  • Use Test decrypt right after creating the code.
  • Print it, scan the paper with your phone, and open the result on link2qr.com/s.
  • Long notes make dense codes. When the tool warns that the code is dense, print it larger or shorten the note, since small prints and older phone cameras struggle with dense codes.

Frequently Asked Questions

Can Link2QR read my secret message?

Encryption runs in your browser before the code is made, and the password is never sent anywhere. In link mode the note travels after the # in the link, a part of the address browsers do not send to the server. Link2QR has nothing to read and nothing stored.

I forgot the password. Can you recover the note?

No. The key is made from your password and is not stored anywhere. Without the password nobody, including Link2QR, can decrypt the note.

What happens if the password is wrong?

The page shows "Wrong password or damaged code". The same message is used for a wrong password, a changed character, or a broken code, so the page does not reveal which one it was.

Is a note without a password private?

No. Without a password the note is only encoded, not encrypted. Anyone who scans the code or has the link can read it.

How long can the note be?

Up to 1,000 bytes of text, which is about 1,000 letters of plain English and fewer for emoji or non-Latin scripts. Longer notes make the QR code denser, and the tool warns when the code gets hard to scan.