DES
The 1977 US standard cipher, broken by exhaustive search, and its three-pass extension
Practical attacks exist. Present for compatibility and research only. Reach it with NextSSL(root=True) in Python or the nextssl_root_* functions in C.
About DES
DES is one of 2 DES and Triple DES variants in the NextSSL registry, a block cipher. It uses an 8-byte (64-bit) key and an 8-byte (64-bit) block. Its registry entry cites FIPS 46-3 (withdrawn). NextSSL lists it in the broken tier and exposes it through the root API only (NextSSL(root=True) in Python, nextssl_root_* in C).
Overview
DES was the US federal encryption standard from 1977 until it was replaced by AES. Its 56-bit key has been breakable by brute force since 1998. Triple DES (3DES) applies DES three times to extend its life, but is now deprecated.
DES is a 16-round Feistel network on a 64-bit block. The round function expands a 32-bit half to 48 bits, XORs a round key, passes the result through eight 6-to-4-bit S-boxes and permutes the output. The S-boxes were strengthened against differential cryptanalysis years before that technique was public. Triple DES encrypts, decrypts and encrypts again with two or three independent keys.
DES was developed at IBM from the Lucifer cipher with input from the NSA and published as FIPS 46. NextSSL includes single DES and 3DES (TDEA) for legacy interoperability. Triple DES remained common in payment systems for decades, and the payment industry is still phasing it out. DES remains a key teaching example.
History
1977–2017DES published as FIPS 46
EFF's Deep Crack recovers a DES key in 56 hours
Triple DES endorsed in FIPS 46-3
FIPS 46-3 withdrawn
Specified in SP 800-67
Security notes
Single DES is broken: the EFF's Deep Crack machine recovered a key in days in 1998, and the keyspace can now be searched in hours. 3DES has an effective strength of 112 bits at most, its 64-bit block is vulnerable to the Sweet32 birthday attack, and NIST disallowed it for encryption after 2023.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| key | 8 | Secret key |
| block | 8 | Block |
Use it
from nextssl_demo import NextSSL
root = NextSSL(root=True) # tier 'broken' is reachable from the root API only
block = root.call("blockcipher_encrypt", "des", None, key, plaintext_block)[0]
nextssl_root_blockcipher_encrypt("des", NULL, key, block, out); /* exactly one block */
use nextssl_core::Params;
use nextssl_registry::{self as reg, Policy};
let alg = reg::new_blockcipher_in(reg::all(), Policy::Any, "des", &Params::new())?;
let out = alg.encrypt_block(&key, &block)?;
Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.
Other DES and Triple DES variants
1Similar names
Looking for something else?More block ciphers
All 84Frequently asked questions
What is DES?
DES is a block cipher in the DES and Triple DES family. DES was the US federal encryption standard from 1977 until it was replaced by AES.
What are the DES sizes?
In NextSSL, DES uses: key 8 bytes, block 8 bytes.
Who designed DES and when?
DES belongs to the DES and Triple DES family, first published in 1977 by IBM, with NSA input. Its origin: FIPS 46-3 (withdrawn); NIST SP 800-67 (3DES).
Which standards define DES?
DES is referenced by FIPS 46-3 (withdrawn).
Is DES safe to use?
DES is in the broken tier. Practical attacks exist. Present for compatibility and research only. It is only reachable through the root API (NextSSL(root=True) in Python, nextssl_root_* in C).
What other DES and Triple DES variants are there?
NextSSL also registers 3des in the DES and Triple DES family.
Related families
The Advanced Encryption Standard: the world's default 128-bit block cipher
LM hashThe LAN Manager password hash: DES-based, unsalted and trivially crackable
CBC-MAC and DES-MACThe original block-cipher MAC: secure only for fixed-length messages
Unix crypt formatsClassic modular-crypt password hashes: BSDi DES, md5crypt, sha256crypt and sha512crypt