About the AES Encrypt / Decrypt
A complete symmetric-encryption workbench. Use a passphrase for quick, OpenSSL-compatible encryption (output starts with U2FsdGVkX1 = “Salted__”), or switch to raw key + IV to interoperate exactly with code in Java, Python, Go, Node.js or .NET.
All block-cipher modes (CBC, ECB, CFB, OFB, CTR) and padding schemes (PKCS#7, zero, ISO 10126, ANSI X.923, none) are available, plus authenticated AES-GCM through the browser’s native Web Crypto API.
Features
- AES-128 / 192 / 256, AES-GCM, DES, Triple DES, Rabbit, RC4, RC4Drop
- CBC, ECB, CFB, OFB and CTR modes
- PKCS#7, zero, ISO 10126, ANSI X.923 or no padding
- Passphrase mode compatible with
openssl enc -md md5 - Raw key/IV in hex, Base64 or UTF-8
- Random key and IV generator
- Optional IV prepended to the cipher text
- Base64 or hex cipher text
How to use it
- Select Encrypt or Decrypt and the algorithm.
- Choose passphrase mode, or raw key + IV and enter/generate them in the right encoding.
- Pick mode, padding and the cipher-text encoding to match the other system.
- Type the input — the result is computed instantly. Use Swap to round-trip.
Frequently asked questions
How do I decrypt something encrypted in Java/Python?
Use raw key + IV mode and match all parameters: key bytes, IV bytes, mode, padding and encoding. Java’s AES/CBC/PKCS5Padding equals CBC + PKCS#7 here. Java AES without a mode means ECB + PKCS#7.
What does the passphrase mode do?
It derives the key and IV from your passphrase and a random 8-byte salt using OpenSSL’s EVP_BytesToKey (MD5), and outputs Salted__ + salt + cipher text in Base64. Decrypt it with openssl enc -d -aes-256-cbc -md md5 -a.
Why does AES-GCM have no padding option?
GCM is a stream mode with a built-in authentication tag (appended to the cipher text), so no padding is needed. Decryption fails loudly if the key, IV or data is wrong — a security feature.
Which settings should I use for new projects?
AES-256-GCM with a random 12-byte nonce that is never reused, stored alongside the cipher text (enable “IV prepended”).