K002 / Symmetric ciphers (block and stream)
DES
DES is a symmetric block cipher that uses the same binary key.
CRYPTOGRAPHY LAB / K002
Cryptography Lab · DES
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.
DES (16 rounds, legacy)
See the scope above for fixed examples, reduced parameters and supported variants. Standard operation names and formulas are retained.Output
Previous state
- Definition and overview
- DES is a symmetric block cipher that uses the same binary key. Source document ↗
- Classification and reversibility
- A symmetric block cipher that is reversible, with encryption and decryption using the same key. Source document ↗
- Key or secret requirements
- Requires a secret symmetric key; of the nominal 64-bit key, 56 bits are effective. Source document ↗
- Operating principle and structure
- Uses a 16-round iterative mixing structure with a 48-bit subkey in each round. Source document ↗
- Key size, block size and parameters
- Processes 64-bit blocks and uses a 56-bit key to produce 64-bit ciphertext. Source document ↗
- Security strength and recommendation
- Now withdrawn and superseded by AES. Source document ↗
- Known attacks and vulnerabilities
- Vulnerable to brute-force attacks. Source document ↗
- Standards and certification
- Standardized as FIPS 46-3 but withdrawn in 2005; no longer an approved algorithm. Source document ↗
- Typical uses
- Historically used to protect sensitive confidential information in federal agencies. Source document ↗
- Implementations, libraries and tools
- Implementations exist, such as Go's standard crypto/des library, but should be limited to legacy use. Source document ↗
- Decryption or decoding
- Decryption restores a 64-bit ciphertext block to the original plaintext block with the same 56-bit key. Source document ↗
- Advantages
- Not confirmed in the survey
- Limitations and cautions
- Its security strength is insufficient for continued use in protecting federal government information. Source document ↗
- Distinguishing encryption, encoding and hashing
- DES is reversible encryption requiring a key, distinct from keyless encoding and irreversible hashing. Source document ↗
Practical examples
Example
A 64-bit plaintext block is transformed in 16 rounds using a 56-bit effective key to produce a 64-bit ciphertext. Decryption reverses the procedure using the same key. Actual keys or secrets are not used in the example.
Procedure
Encryption: choose a secure mode and IV/padding and process 8-byte blocks using a DES-compatible library. Decryption: reverse the transformation with the same key and IV/mode. DES is reversible encryption requiring a key, encoding is keyless representation conversion, and hashing is irreversible.
Scenario
Only decrypt data stored with DES by a legacy system in an isolated environment when required, using the same key/IV. Plan migration by re-encrypting with AES and do not use DES in new designs.
Pitfalls and alternatives
Single DES is vulnerable to brute force due to its 56-bit key and has been withdrawn from the standard. Avoid ECB, key/IV reuse and padding errors; replace it with AES-256-GCM or similar in new systems.
References
- 250-253 ↗
- Data Encryption Standard ↗
- Standing the Test of Time: The Data Encryption Standard, Volume 47, Number 3 ↗
- Untitled result ↗
- Cryptographic Algorithm Validation Program | CSRC ↗
- NIST Withdraws Outdated Data Encryption Standard | NIST ↗
- DES Encryption in Go: 56-bit Key Example ↗
- Data Encryption Standard ↗