Skip to content

Text Encryption (AES)

Encrypt and decrypt text with a passphrase using AES-256-GCM, entirely in your browser.

At least 8 characters; a few random words is best. It can't be recovered if you forget it.

Result

Enter text and a passphrase, then select Encrypt text.

Runs in your browser — nothing you enter is sent to a server.

How the Text Encryption (AES) works

Type a message and a passphrase and select Encrypt text. Your browser turns the passphrase into a 256-bit key with PBKDF2 (SHA-256, 600,000 iterations and a random salt) and encrypts the text with AES-256-GCM. The result starts with “ts1:” and can be pasted anywhere; paste it into Decrypt with the same passphrase to read it again.

Nothing is sent to a server. GCM also detects tampering: a wrong passphrase or a changed message fails to decrypt instead of producing garbage.

Formulas

Key

key = PBKDF2-SHA-256(passphrase, 16-byte salt, 600,000 iterations)

Output

ts1: + Base64(salt ‖ 12-byte IV ‖ ciphertext and tag)

Examples

Sharing a Wi-Fi password

Encrypt it, send the result by email, and tell the passphrase in person or by phone.

The same text twice

Encrypting the same message again gives a different result, because the salt and IV are random each time.

Frequently asked questions

Can you recover a forgotten passphrase?

No. Without the passphrase the text can't be decrypted — by anyone.

How strong is it?

AES-256-GCM is a current standard; the weak point is the passphrase. Use several random words.

Why 600,000 iterations?

It's OWASP's recommendation for PBKDF2-SHA-256: slow enough to make guessing passphrases expensive.

Password Generator

Create strong random passwords with the length and characters you choose, generated privately in your browser.

Security Tools

HMAC Generator

Generate HMAC-SHA256, SHA-384, SHA-512 or SHA-1 signatures from a message and secret key.

Security Tools

Password Strength Checker

Estimate how strong a password is and how long it could take to crack — without it leaving your browser.

Security Tools