Encrypt and decrypt text
Lock a message, a note or a set of keys with a password. Send the encrypted text by email or chat, and only someone with the password can read it.
- No upload
- No account
- Free, no watermark
Text to encryptEncrypted text
Result
How it works
How to encrypt text with a password
Type or paste your text
Choose Encrypt and add the message or note you want to protect.
Choose a strong password
Use a long password that you do not use anywhere else. The password generator on this site can make one.
Encrypt and share
Press Encrypt and copy the result. Send the password another way, for example by phone, and the reader uses Decrypt to open it.
Why
Strong encryption without an app
Email and chat messages are often stored for years on servers you do not control. Encrypting the text first means it stays unreadable there, even if an account is hacked. The encryption runs in your browser with the Web Crypto API that is built into every modern browser, so the text and the password never leave your device.
Technical details
How the encryption works
Your text is locked with AES-256 in GCM mode. The key is made from your password with PBKDF2 SHA-256 and 600,000 rounds, so every guess at the password takes real work. The result is Base64 of these parts, in this order:
- 1 byte: the format version, always 1
- 16 bytes: the random salt for PBKDF2
- 12 bytes: the random starting value (IV) for AES-GCM
- The rest: the encrypted text, with the 16 byte check value (tag) at the end
Any program with PBKDF2 and AES-GCM can decrypt it. This Python script uses the cryptography package (pip install cryptography):
import base64, getpass, hashlib
from cryptography.hazmat.primitives.ciphers.aead import AESGCM
data = base64.b64decode(input("Encrypted text: "))
password = getpass.getpass("Password: ").encode()
salt, iv, sealed = data[1:17], data[17:29], data[29:]
key = hashlib.pbkdf2_hmac("sha256", password, salt, 600000, 32)
print(AESGCM(key).decrypt(iv, sealed, None).decode())
Questions
Questions and answers
How secure is this encryption?
It uses AES-256 in GCM mode, the same standard banks and messaging apps use. The key is made from your password with PBKDF2 SHA-256 and 600,000 rounds, with a new random salt every time. The weak point is the password, so use a long one that is hard to guess.
What if I forget the password?
Then the text cannot be decrypted, by you or by anyone else. Nothing is stored here, so there is no way to reset it. Keep the password somewhere safe, such as a password manager.
Why is the result different each time?
Every encryption uses a new random salt and starting value, so the same text and password never give the same result. This hides whether two messages are the same. Each result still decrypts with the same password.
Can other tools decrypt it?
Yes. The format is open and explained on this page under How the encryption works, together with a short Python script that decrypts it. The easiest way is still to decrypt it here, with the Decrypt button.
Can a chatbot decrypt it?
Only if it can run code. Decrypting takes 600,000 rounds of PBKDF2 and the exact byte layout, which a chatbot cannot work out in its head. A chatbot that runs code can decrypt it with the Python script on this page. Keep in mind that this shares the message and the password with that service.
Does it work offline?
Yes. Once the page has loaded, it works without an internet connection, and nothing you type or add is sent anywhere.
More tools
More free tools
Everything on ConvertOrino runs in your browser, so your files and what you type never leave your device.
Last updated