Skip to content
Jellykit

Encrypt Text With a Password

Lock a message with a password using AES-256-GCM and get a block of text you can paste anywhere; the same page decrypts it again.

  • Runs on your device
Loading tool

About Encrypt Text With a Password

Type a message and a password, and get back one line of Base64 that only someone with the password can turn back into the message. Paste it into an email, a chat or a note; send the password some other way.

The same page decrypts: switch the direction, paste the block and enter the password. Any change to the block, even one character, is detected and refused rather than producing altered text.

How it works

  1. Your password is stretched into a 256-bit key with PBKDF2-HMAC-SHA256 over 600,000 rounds and a random 16-byte salt, which makes guessing passwords slow for an attacker.
  2. The message is encrypted with AES-256-GCM by your browser’s built-in Web Crypto. GCM also seals it with a tag, so tampering or a wrong password is detected instead of producing garbage.
  3. The result starts with a short header (format version, rounds, salt and nonce) followed by the sealed data, all written as standard Base64. Nothing else is needed to decrypt it except the password.
  4. Your password is turned into Unicode normal form C first, so the same password typed on a phone or a computer gives the same key.

Questions

What happens if I forget the password?

The text is lost. There is no back door and no reset: the password is not stored anywhere, and without it the data cannot be decrypted. Use a long passphrase you can remember, or keep it in a password manager.

Why is the result different every time?

Each encryption uses a fresh random nonce, and a fresh salt whenever the password changes. That is deliberate: two identical messages never produce the same block, so nobody can tell they match. Every version decrypts to the same text.

Is my message sent anywhere?

No. Encryption and decryption run in your browser with Web Crypto. The message and the password stay on your device and are forgotten when you close the page.

How much text can it encrypt?

Up to 3 MB of text. Larger content belongs in a file: the file encryption tool handles files of any type and uses the same format.

Can other programs decrypt it?

Not as is. The format is built only from standard pieces (PBKDF2-SHA256, AES-256-GCM, Base64), so a short script could read it, but no common program recognises it. Decrypt it here, offline if you like.

Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.