About Encrypted Share Link
Write a short note, such as a Wi-Fi password, a door code or a one-off credential, and get a link to send instead of the note itself. The note is encrypted in your browser with AES-256-GCM, and both the encrypted text and the key travel in the part of the link after the #, which browsers never send to any server. Whoever opens the link sees the note, decrypted on their own device.
For more protection, add a password and send it another way: the note then opens only with both the link and the password. Nothing is stored anywhere, so the link is the note: keep it as private as the note would be.
How it works
- A random 256-bit key and a random 96-bit nonce are drawn with crypto.getRandomValues, and the note is encrypted with AES-256-GCM through Web Crypto. GCM’s tag makes any change to the link detectable.
- The key and the ciphertext are written in Base64url after the # of this page’s address. Browsers keep that part of an address to themselves: it is not sent with the request for the page, so the site never receives it.
- With a password, the ciphertext is encrypted a second time with a key derived from the password by PBKDF2-SHA-256 (600,000 rounds), so neither the link alone nor the password alone opens the note.
- Opening the link loads this page, which reads the fragment and decrypts the note when you press “Show note”. Nothing is kept: close the tab and only the link remains.
Questions
Is the note deleted after it is read?
No. Nothing is stored on a server, so there is nothing to delete: the link itself holds the note and keeps working for anyone who has it. If a note must expire, change the secret it contains after it has been read.
Who can read the note?
Anyone who has the whole link, and the password if you set one. The link stays in browser history and in the message you send, so send it over a channel you trust, and use the password option for anything important.
How long can the note be?
Up to 4,096 bytes, which is about 4,000 letters of English or fewer in other scripts. Links over 2,000 characters are flagged, because some chat apps and mail clients cut long links short.
What if the link is cut short or changed?
The note will not open: the encryption detects any change and says the link is incomplete or altered, rather than showing wrong text. Copy the whole link again.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.