What can the AES Decryptor read?

It reads cipher text made with the AES Encryptor: a single Base64 string that holds a random salt, an IV and the text encrypted with AES-GCM, in that order. To decrypt it, you need the same password and the same key size that were used to encrypt it. Without the password, there's no way to get the text back: there's no reset and no backdoor.

Tool description

Paste the cipher text into Cipher text, type the password into Secret Key and pick the AES Mode it was made with: AES-128, AES-192 or AES-256. The original text appears in Plain text as you type, ready to copy. The tool reads the salt and the IV from the start of the cipher text, makes the key again from your password with PBKDF2 and decrypts the rest. To encrypt text, use the AES Encryptor, or press the swap button to turn the conversion around.

Example

This cipher text was made with the Secret Key strawberry-jam and AES-128:

0FZRyMW6hByuR/01Cj8ZqBjn1JLKV9GuK82OCGPyCH9jjQ20eijRZ0ARve7I6XvbG3RJ9zkl1BgDY/0YaBlZHAqSe7Ooj993BTLQjlHO9IWggVAbE1hbaObd/qE=

It decrypts to Picnic at the lake at noon. I'll bring lemonade. With AES-256 picked instead, you get an error, even though the Secret Key is right.

When decryption fails

AES-GCM checks the cipher text before it gives anything back. So you get either the exact original text or this message: "Decryption failed. Please check your cipher text and secret key." Check these:

  • Secret Key: the same letters in the same case, with no extra space at the end.
  • AES Mode: if you aren't sure which size was used, try the other two.
  • Cipher text: copied whole, with nothing missing at the start or the end. Spaces and line breaks are ignored, so cipher text that an email split over several lines still works.
  • Where it comes from: only cipher text from the AES Encryptor works, as other AES apps use other layouts. Text that starts with U2FsdGVkX1, for example, comes from OpenSSL or CryptoJS.

With Secret Key empty, the tool asks for it instead: "Secret key is required for encryption/decryption."

Good to know

  • Decryption runs in your browser, so the cipher text and the password never leave your device.
  • To change the text, decrypt it, edit it and encrypt it again. The new cipher text will look completely different, even if you change only one letter.