DES / TDES / AES encrypt and decrypt
DES/TDES/AES encrypt & decrypt (ECB/CBC) with padding options.
- Runs in your browser
- No sign-up
Input
Encrypted: 16 bytes
Result
Keys or cryptograms not matching between two systems? IDNTEQ’s EMV team can help. EMV transaction troubleshooting
About this tool
Runs in your browser. This page loads no analytics or third-party scripts and does not send what you type.
Encrypt or decrypt data with DES, TDES or AES in ECB or CBC mode. Choose a padding method for non-block-aligned data.
Modes and padding
The tool supports single/double/triple-length DES keys (8/16/24 bytes) and AES-128/192/256 (16/24/32 bytes), in ECB or CBC mode with an optional IV. Padding options cover PKCS#7 and ISO 9797-1 Method 1 (zeros) and Method 2 (80…00). Method 1 padding is not removed after decryption, because it cannot be told apart from data that ends in zero bytes. The key KCV is shown so you can confirm you loaded the right key.
The published examples from FIPS 81 (DES ECB and CBC) and NIST SP 800-38A (AES-128 ECB and CBC) can be loaded with one click; the expected output is shown next to the tool’s output.
Spec references
- NIST FIPS 46-3 / SP 800-67 (DES/TDES)
- NIST FIPS 197 (AES)
- ISO 9797-1 (padding)
Verified against
- Specifications
- NIST SP 800-67 (TDES)
- FIPS 197 (AES)
- NIST SP 800-38A (ECB, CBC)
- ISO/IEC 9797-1 padding methods 1 and 2; PKCS#7
- Published examples in the tests
- Other checks in the tests
- 1-, 2- and 3-key TDES against OpenSSL on 60 random blocks in both directions
- Padding added and removed per method; a bad PKCS#7 padding is an error
- Inputs
- Key, IV and data in hex. DES/TDES keys of 8, 16 or 24 bytes; AES keys of 16, 24 or 32 bytes.
- Not covered
- No other modes (CTR, GCM, CFB, OFB). Method 1 padding is not removed after decryption.
- Last reviewed