About this tool
AES Text Encryption turns a message into an encrypted Base64 string using a passphrase, and turns it back again. It uses AES-256 in GCM mode through the browser's Web Crypto API. The key is not your passphrase itself: it is derived from the passphrase with PBKDF2 (SHA-256, 600,000 iterations) and a random 16-byte salt, and a random 12-byte IV is generated for every encryption.
To encrypt, type your text, enter a passphrase and press Encrypt. The output is one Base64 string holding the salt, the IV and the ciphertext with its authentication tag, in that order. Because the salt and IV are random, encrypting the same text twice gives different output, which is normal. To decrypt, paste that string into the message box, enter the same passphrase and press Decrypt. Output made earlier with 100,000 iterations is still accepted.
GCM authenticates the data, so a wrong passphrase or any changed character gives a single decryption failed message instead of garbage text, and the tool cannot say which of the two it was. There is no recovery: if you forget the passphrase, the text cannot be decrypted. The passphrase box is plain text, so check that nobody can see your screen. Input is treated as UTF-8 text, so this suits notes and snippets rather than files, and the string layout is specific to this tool, so it will not decrypt output from OpenSSL or other programs. Security rests on a long, unique passphrase.