← Cryptography guide

K002 / Symmetric ciphers (block and stream)

DES

Data Encryption Standard · Survey date 2026-12-05

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.

Scope: Legacy / non-secure

DES (16 rounds, 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
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

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

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.

Diagram source ↗

References