TTKTheTextKit

Text Encryption Tool

Turn a private note into an unreadable block of text that only the password can open. Type the text and a password to encrypt it, send the result any way you like, and let the other person paste it here with the same password to read it. Everything runs in your browser.

There is no way to recover a lost password: without it the message cannot be read by anyone, including us. Anyone who has the message can try passwords against it, so use a long one, and send it by a different route from the message. The text and the password stay in your browser and are not uploaded. This cannot protect you on a computer that is already infected or watched.

Related Tools

[6 suggestions]

About the Text Encryption Tool

The tool uses the Web Crypto functions built into your browser. Your password is first turned into a 256 bit key with PBKDF2 using HMAC-SHA-256, a random 16 byte salt and 600,000 rounds, which makes every guess at the password cost real computing time. The text is then encrypted with AES in Galois/Counter Mode, known as AES-256-GCM, with a random 12 byte initialization vector. GCM also adds an authentication tag, so a wrong password or a message that was changed or cut short is rejected instead of producing garbled text. The result is Base64 text holding a four byte marker, the round count, the salt, the vector, and the encrypted data with its tag; the same message encrypted twice looks completely different. The strength of the whole thing rests on the password. Somebody who gets a copy of the message can try passwords on their own computer with no limit on attempts, so a short or common password can be found. Use several unrelated words or a long random string from a password manager, and send the password by a different route from the message, for example by phone. There is no reset and no back door: a forgotten password means the text is gone. This tool protects the text while it is stored or sent. It cannot protect it from someone who controls your device, watches your screen or serves you a tampered page, and it hides neither who sent a message nor how long the text roughly is. For highly sensitive or ongoing conversations, use a well reviewed end to end encrypted messenger. Nothing you type is uploaded or stored.

How do I send someone an encrypted message?▾

Encrypt the text, copy the whole block into an email or chat, and tell the recipient the password another way. They open this page, choose Decrypt, paste the block and type the password.

Can you recover my password or my text?▾

No. Neither is sent to us, and the encryption has no spare key. Without the password the message cannot be read.

What encryption does this use?▾

AES-256 in GCM mode, with a key made by PBKDF2-HMAC-SHA-256 with 600,000 rounds and a random salt, all through the Web Crypto API of your browser.

Why does decryption fail?▾

Either the password is not exactly the same, including capital letters and spaces, or part of the message is missing or was changed. The two cases cannot be told apart.

Is it the same as hashing or Base64?▾

No. Base64 only rewrites data and anyone can reverse it, and a hash cannot be reversed at all. Encryption can be reversed, but only with the key.

Is my text uploaded?▾

No. Encryption and decryption happen on your device. The page sends neither the text nor the password anywhere.