AES / DES / 3DES encrypt and decrypt
Switch between AES, DES and 3DES (TDEA EDE) in one page: ECB / CBC / CFB / OFB / CTR, PKCS#7 padding, hex or UTF-8 keys and IVs, text / hex / Base64 input and output, with per-algorithm key and IV length validation. DES and 3DES are kept for legacy compatibility only.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Result
Runs locally; keys and plaintext never leave the page.
Enter content to see the result
Input bytes: 0 · Output bytes: 0 · Block size: 0 · Mode used: 0
What this tool does
- Compare ciphertext across AES / DES / 3DES with one set of parameters.
- Handle legacy data that only supports DES or 3DES.
- Check how an implementation treats DES key parity and the 8-byte IV.
Example
Input
Hello, world!
Output
4e2810047e6b9a45f401807a4206a2ed
All three algorithms share one mode and padding implementation (AES per FIPS-197, DES per FIPS 46-3, 3DES per the EDE construction of NIST SP 800-67). Verified: AES-128 ECB single block → 69c4e0d8…, DES 133457799bbcdff1 / 0123456789abcdef → 85e813540f0ab405, 3DES 0123456789abcdeffedcba987654321089abcdef01234567 / 5468652071756663 → 82cfaf0fba8b7419.
Frequently asked questions
Is DES still usable?
No. DES has only 56 effective key bits and is brute-forceable in hours today; it is kept only for legacy data and teaching. Use AES-128 or stronger for new work.
How long is a 3DES key?
24 bytes (K1-K2-K3). A 16-byte key is accepted as well (K3 = K1, two-key 3DES); 8 bytes are treated as single DES applied three times, matching DES.
Do I have to set DES parity bits?
No. Only the 56 effective key bits are used; bits 8, 16, … are parity and are neither checked nor fixed.
Why does DES report invalid-iv?
DES and 3DES have an 8-byte block so the IV must be 8 bytes; passing 16 bytes (an AES habit) reports invalid-iv.
Keywords:3DESTripleDesAES/DES/3DES