← Cryptography guide

K003 / Symmetric ciphers (block and stream)

3DES

Triple DES · Survey date 2026-12-05

3DES (TDES/TDEA) is a symmetric block cipher that applies DES three times to each data block.

CRYPTOGRAPHY LAB / K003

Cryptography Lab · 3DES

Run real computations and inspect intermediate states step by step.

Educational only. Never enter real passwords or secret keys. Computation stays in your browser; input and trace values are not sent to a server. Do not use this implementation in production.

Scope: Legacy / non-secure

3DES EDE (three keys, legacy)

See the scope above for fixed examples, reduced parameters and supported variants. Standard operation names and formulas are retained.

Open lab →

Definition and overview
3DES (TDES/TDEA) is a symmetric block cipher that applies DES three times to each data block. Source document ↗
Classification and reversibility
A symmetric block cipher supporting encryption and decryption. Source document ↗
Key or secret requirements
Requires a secret symmetric key bundle: three-key TDEA uses K1, K2 and K3, and two-key TDEA uses K1 and K2. Source document ↗
Operating principle and structure
An EDE (encrypt-decrypt-encrypt) structure applying DES three times. Source document ↗
Key size, block size and parameters
64-bit blocks; keys including parity are 128 or 192 bits, with 112 or 168 effective bits. Source document ↗
Security strength and recommendation
NIST withdrew SP 800-67 Rev. 2 on 2024-01-01. 3DES must not be used for new encryption, key wrapping or MAC generation; only decryption of existing data is allowed. Source document ↗
Known attacks and vulnerabilities
No practical key-recovery attack is known for three-key TDEA, but the 64-bit block size creates a risk of Sweet32 collision attacks. Source document ↗
Standards and certification
Standardized in NIST SP 800-67 Rev. 2; related specifications include RFC 1851 (experimental ESP 3DES) and RFC 8429 (Kerberos 3DES deprecation). Source document ↗
Typical uses
Historically used for legacy data protection in IPsec ESP, HTTPS/OpenVPN, Kerberos, files and databases. Source document ↗
Implementations, libraries and tools
Implementations include .NET TripleDES, Java Cipher/DESede, CryptoJS.TripleDES and PyCryptodome DES3. Source document ↗
Decryption or decoding
Decrypts by applying DES operations in reverse order with the same key bundle. Source document ↗
Advantages
Provides compatibility with existing DEA/DES and expands the key space relative to DES by using three keys. Source document ↗
Limitations and cautions
Current brute-force costs are low, and its 64-bit block limits and withdrawal make it unsuitable for new use. Source document ↗
Distinguishing encryption, encoding and hashing
Not confirmed in the survey

Practical examples

Examples are illustrative; they are not execution-tested implementations or operational recommendations.

Example

Supplying plaintext, a key bundle and mode/IV produces 3DES ciphertext; decrypting with the same key and mode/IV returns the original. 3DES provides confidentiality, unlike encoding such as Base64 or hashing such as SHA.

Procedure

Encryption: select the key bundle, mode and IV if needed, apply padding, encrypt with 3DES, and store with IV/metadata. Decryption: check stored key, mode, IV and padding, decrypt with reversed 3DES operations, and verify padding. Encoding changes byte representation without a key; decoding reverses that transformation.

Scenario

Restrict legacy 3DES ciphertext handling to decryption and migration, and move new storage and transmission to AES-GCM. Check the timetable for removing 3DES support from VPN and Kerberos systems.

Pitfalls and alternatives

Avoid new 3DES encryption; replace it with AES-GCM or ChaCha20-Poly1305. Be aware of the 64-bit block data limit, ECB, fixed IVs and padding oracles, and do not confuse encryption, encoding and hashing.

Diagram source ↗

References