Security Tools

Text Encrypt & Decrypt (AES-256)

Protect a message with a password using AES-256-GCM, send the encrypted text by any channel, and decrypt it later with the same password. Wrong passwords and tampered text are detected.

Private by design: anything you enter is processed in your browser only. It is never uploaded to or logged on our servers. Your text and password never leave this device, and this page has no share links.

There is no password recovery. If the password is lost, nobody (including us) can decrypt the text. Send the password through a different channel than the encrypted text.

About password-based text encryption

This tool encrypts text with AES-256 in GCM mode, the authenticated encryption used by TLS 1.3, through your browser's built-in Web Crypto API. The key is derived from your password with PBKDF2-HMAC-SHA256 and 600,000 iterations (the current OWASP recommendation), which makes every password guess slow. A new random 16-byte salt and 12-byte IV are used every time, so encrypting the same text twice gives different output.

The result is a single Base64 string that holds everything needed to decrypt it except the password: a version byte, the iteration count, the salt, the IV, and the ciphertext with its 16-byte authentication tag. Send it by email or chat, and share the password separately, ideally by phone or in person. To decrypt, open the Decrypt tab, paste the string and enter the same password.

GCM detects tampering: if the password is wrong or a single character of the encrypted text was changed, decryption fails instead of returning garbage. The header is authenticated too, so nobody can lower the iteration count. Security depends on the password: a random passphrase of five or more words is strong, a short dictionary word is not. You can create one with the password generator.

Reference Guide

Layout of the decoded Base64 string (all integers big-endian):

BytesFieldNotes
0VersionAlways 1
1–4PBKDF2 iterationsUnsigned 32-bit, 600,000 by default
5–20Salt16 random bytes
21–32IV (nonce)12 random bytes
33–Ciphertext + tagUTF-8 plaintext encrypted with AES-256-GCM; the last 16 bytes are the tag. Bytes 0–32 are the additional authenticated data.

Because the format is documented, you can decrypt without this site, for example in Python with the cryptography package: derive the key with PBKDF2HMAC(SHA256(), 32, salt, iterations), then call AESGCM(key).decrypt(iv, ciphertext_and_tag, header).

Frequently Asked Questions

No. Encryption and decryption run in your browser with the built-in Web Crypto API. Your text and password are never uploaded or stored, and this page has no share links that could carry them.

The text is encrypted with AES-256-GCM using a key derived from your password with PBKDF2-SHA256 and 600,000 iterations, with a fresh random salt and IV every time. The weak point is the password: use a long passphrase of several random words, and send it through a different channel than the encrypted text.

Decryption fails with an error instead of producing garbage, because GCM authenticates the data. The same error appears if even one character of the encrypted text was changed or cut off when copying.

No. There is no backdoor or recovery option: without the exact password nobody can decrypt the text, including us.