AES Encrypt and Decrypt Text
Both people need the same password. Share it separately from the encrypted text.
Encryption needs a secure (https) connection, so it isn't available on this page right now.
Your text and password are processed in your browser and are never sent to our server. Anyone who has the encrypted text can keep guessing the password, so use a long passphrase rather than a short word. A lost password can't be recovered, and the password doesn't prove who wrote a message, since anyone who has it can create one.
How it works
- The password is turned into a 256-bit key using PBKDF2 with HMAC-SHA256 and 600,000 iterations, using a new random 16-byte salt for every message.
- The text is converted to UTF-8 and encrypted with AES-256-GCM, using a random 12-byte IV. GCM also detects any change to the encrypted text.
- The result is one Base64 string containing a version byte (1), the salt, the IV, and the ciphertext with its 16-byte authentication tag, in that order. The version byte is also authenticated.
- The password is normalized (Unicode NFC) before use, so accented characters typed on different devices still match.
- Because the salt is new each time, encrypting the same text twice gives different results. Both decrypt with the same password.