Encrypt and Decrypt Text

Keep the password safe and share it separately (for example by phone). Without it the text can never be decrypted: there is no recovery.

Everything runs in your browser. Your data never leaves your device.

What this tool does

Encrypt any message with a password and send the result by email, WhatsApp or a note. Only someone who knows the password can decrypt it here and read the original text. Arabic, English, emoji and long texts all work, and everything happens in your browser: neither the text nor the password is uploaded.

How to use it

  1. Choose Encrypt, type your message and a password, then press Encrypt.
  2. Copy the encrypted text, which starts with MZ1., and send it.
  3. Send the password a different way, for example in a phone call.
  4. The receiver chooses Decrypt, pastes the text, types the password and reads the message.

How it works

The tool turns your password into a 256-bit key with PBKDF2 (SHA-256, 600,000 iterations, random salt), then encrypts the text with AES-256-GCM and a random 12-byte starting value. The salt, starting value and encrypted data are joined into one text. This follows current OWASP guidance and uses only the Web Crypto API built into browsers.

Tips

Use a password of 12 or more characters, or a passphrase of four or five random words. Never send the password in the same message as the encrypted text. For very sensitive documents, use dedicated encryption software as well.

Frequently asked questions

How secure is this encryption?

It uses AES-256-GCM, the same cipher used by banks and messaging apps, with the key made from your password by PBKDF2 with 600,000 rounds of SHA-256. The weak point is the password, so use a long one that is hard to guess.

Can you recover my text if I forget the password?

No. The password is never sent or stored anywhere, so nobody, including us, can decrypt the text without it.

Why is the result different every time?

Each encryption uses a new random salt and starting value, so the same message encrypted twice looks completely different. Both versions decrypt to the same text with the right password.

Can someone change the encrypted text?

If even one character is changed, decryption fails with an error instead of showing altered text, because AES-GCM checks the message as well as hiding it.

Is this the same as hashing or Base64?

No. Base64 only changes the format and anyone can reverse it, and a hash can't be reversed at all. Encryption hides the text and only the password brings it back.

Last updated: · What's new

Related tools