Password encryption for a message, and where its strength really comes from
This page turns a message into a line of encrypted text that only someone with the password can read. It uses two standard pieces, both built into every modern browser as WebCrypto. PBKDF2 turns the password into a key, and AES-256-GCM encrypts the text with it. Nothing is sent to a server: the encryption happens on your device, and so does the decryption, wherever the reader opens this page.
A password is not a key. Keys for AES are 256 random bits, and passwords are words people can type. PBKDF2 bridges the two. It mixes the password with a random salt and runs HMAC-SHA-256 600,000 times, the count OWASP recommended in 2023, to produce the key. The salt means two people with the same password get different keys, so an attacker cannot precompute a table of keys. The rounds mean every password guess costs the attacker 600,000 hashes, which is why the page takes a moment when you press Encrypt.
AES-256-GCM then encrypts the text with that key and a random 12-byte IV, and adds a 16-byte authentication tag. The tag is what makes this safe to send through channels you do not trust. If anyone changes a single character of the encrypted line, the tag check fails and the page shows nothing. Without the tag, a cipher could be made to decrypt to altered text. The format's header, ykenc1 and the round count, is covered by the tag too, so it cannot be edited to weaken decryption.
Be clear about what this protects against. It keeps the message secret from anyone who sees the encrypted line without the password: a mail server, a chat app, a cloud folder, someone who borrows your laptop. It also detects tampering. It does not protect a weak password. Anyone with the line can guess passwords offline, as fast as their hardware allows, and the rounds only slow them down. A common or short password will fall. Use a passphrase of six or more random words, or a long random password from a password manager.
It also cannot help after decryption. Once the reader decrypts the message, it is plain text on their screen and in their clipboard. And it does not hide that a message exists, how long it is, or who sent it. If you send the encrypted line and the password in the same email, anyone who reads the email reads the message. Send the password a different way: by phone, by text message or in person.
The output is one line of text: ykenc1, the iterations, the salt, the IV and the ciphertext with its tag, joined by dots and written in Base64url. Dots and Base64url pass through email and chat without being changed, and line breaks a mail client adds are ignored. The format is described in full in the questions below, under decrypting without this website, so the text stays readable even if this page ever goes away.