Sometimes you need to send or store a small secret, like a recovery code, a Wi-Fi password or a bank detail, somewhere you don’t fully trust: an email, a shared document, a notes app synced to the cloud. Encrypting it first means that even if someone gets the text, they can’t read it without the password.
How it works
When you click Encrypt, your browser:
- Creates a random 16-byte salt and turns your password into a 256-bit key with PBKDF2, running SHA-256 600,000 times. The slowness is deliberate: it makes guessing passwords expensive.
- Encrypts the text with AES-256-GCM using a fresh random nonce.
- Packs everything needed to decrypt it (except the password) into one Base64 string.
Decrypting reverses the process. If the password is wrong, or the text was changed, GCM’s built-in check fails and you get a clear error rather than garbage.
Good practice
- Use a strong password. Six random words from the passphrase generator is ideal.
- Send the password another way. If the encrypted text goes by email, share the password by phone or in person.
- Test before you rely on it. Switch to Decrypt right after encrypting; the result carries over so you can check the round trip.
For files rather than text, use a dedicated tool such as 7-Zip with AES-256, or your operating system’s encrypted disk images.
How to use the AES Encrypt & Decrypt Text
- Choose Encrypt, type or paste your text and enter a strong password.
- Click Encrypt and copy the result, or save it as a .txt file.
- To read it later, choose Decrypt, paste the encrypted text and enter the same password.
- Share the password separately from the encrypted text, for example by phone.
Features
- AES-256 in GCM mode, which also detects any tampering with the encrypted text.
- Key derived from the password with PBKDF2-SHA-256 and 600,000 rounds (OWASP 2023 recommendation).
- A random salt and nonce every time, so encrypting the same text twice gives different results.
- Output is plain Base64 text, easy to paste into email, notes or chat.
- Uses your browser’s built-in Web Crypto API; nothing leaves your device.
Frequently asked questions
How secure is this?
AES-256-GCM is the same encryption used by banks, VPNs and messaging apps. In practice the weak point is the password: a short or common one can be guessed by trying millions of passwords offline. Use a long passphrase.
Can you recover my text if I forget the password?
No. There is no backdoor and nothing is stored on our side. Without the password, the encrypted text is useless to everyone.
Can other tools decrypt this?
The format is documented: “FT1” marker, 16-byte salt, 12-byte nonce, then ciphertext with the GCM tag, all in Base64, with PBKDF2-SHA-256 at 600,000 iterations. Any language with standard crypto libraries can read it, but other websites won’t know the format.
Why does decryption say the password is wrong when I’m sure it’s right?
GCM checks the data as it decrypts. A single missing or changed character in the encrypted text gives the same error as a wrong password. Make sure you copied all of it.
Written by Dewan Razib