Encrypt Text

Lock a message with a password and get one line of encrypted text to send or store. Paste it back here with the same password to read it. Everything runs on this device; the text and the password are never sent.

How it works

Your password is turned into a 256-bit key with PBKDF2-HMAC-SHA-256, 600,000 rounds, and a random 16-byte salt. The rounds make every password guess slow for an attacker too.

The text is encrypted with AES-256-GCM and a random 12-byte IV. GCM also adds a 16-byte authentication tag, so any change to the encrypted text, even one character, makes decryption fail instead of producing altered text.

The result is one line: ykenc1, the round count, the salt, the IV and the ciphertext, joined by dots, in Base64url. Everything needed to decrypt is in that line except the password. All of it uses the browser's own WebCrypto.

How to use it

  1. 1 Paste or type the text to encrypt.
  2. 2 Choose a password and type it again. A long random passphrase is best.
  3. 3 Press Encrypt. Working out the key takes a moment on purpose.
  4. 4 Copy the line that starts with ykenc1, or download it, and send it any way you like. Give the password to the reader a different way.
  5. 5 To read it, choose Decrypt, paste the line, type the password and press Decrypt.

Good to know

  • Send the password by a different channel from the text: the text by email, the password by phone or in person.
  • Line breaks that an email or chat app adds to the encrypted line do no harm. They are ignored when decrypting.
  • Each encryption uses a fresh salt and IV, so encrypting the same text twice gives two different lines. Both decrypt.
  • Keep a copy of the password. There is no reset and no way to recover the text without it.

Browser support

  • Chrome 94 and later
  • Firefox 93 and later
  • Safari 16.4 and later
  • Edge 94 and later

These are the oldest versions with everything the tool uses. They are worked out from the tool itself, so they change when it does.

Version numbers checked on 2026-09-04.

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.

Frequently asked questions

How secure is this?

AES-256-GCM is the standard choice for authenticated encryption, and PBKDF2 with 600,000 rounds is the figure OWASP recommended in 2023. The weak point is the password. Anyone with the encrypted line can try passwords on their own computer, so a short or common one can be found. A random passphrase of six words or more holds.

What happens if I forget the password?

The text is lost. YappyKit never sees the password or the text, so there is nothing to reset and no back door.

Why does decrypting say "wrong password, or the text was changed"?

GCM checks a tag that covers the whole encrypted line. A wrong password and an altered line both fail that check in the same way, so the page cannot tell which it was. Either way, nothing is shown.

Can I decrypt the text without this website?

Yes. The format is open: split the line on dots, derive the key with PBKDF2-HMAC-SHA-256 from the password, salt and round count, and decrypt with AES-256-GCM using the IV and "ykenc1.<rounds>" as additional data. Any language with a crypto library can do it.

Is my text or password sent anywhere?

No. Encryption and decryption run in this page with the browser's WebCrypto. Nothing is uploaded, logged or stored.

Related tools

Your files are processed on your device and are not uploaded. You can verify this in your browser’s developer tools under the Network tab.