DES and Triple DES Explained: The First Encryption Standard and Why It Was Retired
How DES and Triple DES work, how a $250,000 machine broke DES in 56 hours, why 3DES was retired in 2023, and how to find and replace it today.

For more than twenty years, one algorithm protected a large share of the world’s sensitive data: bank transfers, government records, ATM PINs and corporate networks. It was called DES, the Data Encryption Standard. Then, in 1998, a machine built by a civil-liberties group broke it in 56 hours.
This guide is the first in WakeWill’s series on the classic algorithms that modern security is built on. It explains how DES works, how it was broken, how Triple DES tried to save it, and why both are now retired. If you only remember one thing: the problem with DES was never a clever mathematical flaw. Its key was simply too short.
Why it matters: DES and 3DES are officially retired, but they have not disappeared. They still turn up in old payment systems, VPN and TLS configurations, embedded devices and legacy databases. Every security team should know how to recognise them and what to replace them with.
A short history of DES
In the early 1970s the US government wanted one public, standard algorithm that companies and agencies could all use. IBM submitted a design based on its earlier cipher, Lucifer, and after changes made with the US National Security Agency (NSA) it was published as FIPS 46, the Data Encryption Standard. NIST’s records show it took effect in 1977, and it was reviewed and renewed four times after that: in 1983, 1988, 1993 and 1999.
Two design choices caused arguments from day one:
- The key was 56 bits. Critics said this was short enough for a government with enough money to search every possible key. As early as 1977, Whitfield Diffie and Martin Hellman sketched a machine that could do exactly that.
- The S-boxes were secret in their reasoning. The NSA changed the internal substitution tables, and nobody outside explained why. Many suspected a hidden backdoor. Years later the opposite turned out to be true (see “Cryptanalysis” below).
How DES works
DES is a block cipher: it encrypts data in fixed-size chunks. Here are its basic numbers:
| Property | DES |
|---|---|
| Block size | 64 bits (8 bytes) |
| Key size | 64 bits stored, 56 bits effective (8 bits are parity checks) |
| Structure | Feistel network |
| Rounds | 16 |
| Number of possible keys | 2⁵⁶ ≈ 72 quadrillion |
The Feistel structure in plain words
DES splits each 64-bit block into a left half and a right half of 32 bits each. Then it runs 16 rounds. In each round:
- The right half goes through a round function together with a 48-bit subkey derived from the main key.
- The output is combined with the left half using XOR (a simple bit-by-bit “exclusive or”).
- The two halves swap places.
Inside the round function, the 32-bit half is expanded to 48 bits, mixed with the subkey, and pushed through eight S-boxes. Each S-box takes 6 bits in and returns 4 bits out, using a fixed lookup table. The S-boxes are the only non-linear part of DES, and they are what makes the output hard to predict.
The elegant part of a Feistel network is that decryption uses the same steps as encryption, just with the subkeys in reverse order. In the 1970s that mattered a lot: hardware makers needed only one chip design for both directions.
How DES was broken: brute force, not math
For two decades, the best practical attack on DES was the most boring one: try every key.
- In early 1998, the volunteer network distributed.net solved RSA Security’s DES Challenge II-1 in 39 days using thousands of ordinary computers.
- In July 1998, the Electronic Frontier Foundation (EFF) unveiled “Deep Crack”, a purpose-built machine made of custom chips. It cost under $250,000 and recovered a DES key in about 56 hours, testing around 88 billion keys per second.
- In January 1999, Deep Crack and distributed.net worked together and solved DES Challenge III in 22 hours and 15 minutes.
The point of the EFF project was political as much as technical. At the time, officials claimed DES was still strong enough. A quarter-million-dollar machine showed that any government or large company could read DES traffic. The decrypted message of the last challenge even announced the next step: “See you in Rome (second AES Conference, March 22-23, 1999)”, the competition that produced DES’s successor.
Cryptanalysis: the S-box surprise
Academic attacks on DES also exist, but they are less practical than brute force:
- Differential cryptanalysis, published openly by Eli Biham and Adi Shamir around 1990, studies how differences in the input spread to the output. DES turned out to be unusually resistant to it. In 1994 Don Coppersmith, a member of the original IBM team, revealed why: IBM had known the technique since about 1974, and the S-boxes had been designed to resist it. The suspected “backdoor” was actually extra protection.
- Linear cryptanalysis, published by Mitsuru Matsui in 1993, can recover a full 16-round DES key from about 2⁴⁷ known plaintext and ciphertext pairs (Matsui improved this to about 2⁴³ in 1994). That is an enormous amount of matching data and rarely possible in the real world.
So the lesson of DES is clear: the design was strong for its time, but a 56-bit key cannot survive cheaper and faster hardware.
Triple DES: a stopgap that lasted 25 years
The obvious fix was to make the key longer without throwing away all the DES hardware. The result was Triple DES (3DES), which NIST calls TDEA, the Triple Data Encryption Algorithm.
3DES runs DES three times on each block in an Encrypt–Decrypt–Encrypt (EDE) pattern:
ciphertext = Encrypt(K3, Decrypt(K2, Encrypt(K1, plaintext)))
The middle step is a decryption so that, if all three keys are the same, 3DES behaves exactly like single DES. That kept new equipment compatible with old equipment.
| Variant | Keys | Key bits stored | Real security |
|---|---|---|---|
| Three-key 3DES | K1, K2, K3 all different | 168 | About 112 bits |
| Two-key 3DES | K1 = K3 | 112 | Less than 112 bits; retired earlier |
Why 168 bits only gives 112 bits
You might expect three 56-bit keys to give 168 bits of security. They don’t, because of the meet-in-the-middle attack. An attacker with a known plaintext and ciphertext can encrypt forward from one side, decrypt backward from the other, and look for a match in the middle. This cuts the work dramatically. It is also why “Double DES” was never used: two DES passes give barely more security than one.
The real killer: the 64-bit block
3DES fixed the key problem but kept DES’s 64-bit block. That turned out to matter.
When a block cipher encrypts a lot of data with one key, identical ciphertext blocks (collisions) start to appear after roughly 2^(block size / 2) blocks. For a 64-bit block that is about 2³² blocks, or 32 GB of data. Modern connections can easily send that much.
In 2016, researchers Karthikeyan Bhargavan and Gaëtan Leurent of INRIA in France showed a practical attack called Sweet32 (CVE-2016-2183). If a long-lived HTTPS or OpenVPN connection used 3DES, an attacker who could capture around 32 GB of traffic and make the victim’s browser repeatedly send a secret (such as a session cookie) could recover that secret from the collisions. AES does not have this problem because its block is 128 bits.
The official end: dates every team should know
| Year | What happened |
|---|---|
| 1977 | DES published as FIPS 46 and becomes effective |
| 1998 | EFF’s Deep Crack breaks DES in about 56 hours |
| 1999 | FIPS 46-3 reaffirms DES but recommends Triple DES |
| 2001 | AES approved as FIPS 197 |
| May 19, 2005 | NIST withdraws FIPS 46-3: single DES is no longer approved |
| 2016 | Sweet32 shows practical attacks on 64-bit block ciphers in TLS and VPNs |
| 2017 | SP 800-67 Rev. 2 limits one 3DES key bundle to 2²⁰ blocks (8 MB) |
| March 2019 | NIST SP 800-131A Rev. 2 schedules the end of 3DES encryption |
| Dec 31, 2023 | 3DES is disallowed for encrypting new data under NIST guidance |
| Jan 1, 2024 | NIST withdraws SP 800-67 Rev. 2: TDEA is no longer an approved block cipher |
One detail is important for real systems: NIST still allows 3DES for decrypting data that was already encrypted with it (legacy use). So you may keep 3DES only long enough to read old data and re-encrypt it with AES.
Where you still find DES and 3DES today
Retired does not mean gone. Common places include:
- Payment and banking systems: older card, PIN and HSM workflows were built on DES and 3DES for decades.
- TLS and VPN configurations: old servers, load balancers and appliances may still offer cipher suites with
DES-CBC3or3DESin the name. - Windows and Kerberos: legacy Kerberos encryption types such as
des-cbc-crcanddes-cbc-md5on very old domains. - Embedded and industrial devices: controllers, smart cards and building systems with long lifetimes.
- Old application code and databases: encrypted columns or files using a hard-coded 3DES key.
Common mistakes
- “3DES has 168-bit keys, so it is stronger than AES-128.” No. Its real strength is about 112 bits, and its 64-bit block causes problems AES does not have.
- “No one uses it any more.” Scanners regularly find 3DES cipher suites on internet-facing servers. Assume it is somewhere until you have checked.
- Disabling DES but forgetting 3DES. They are separate settings in most systems.
- Leaving old data encrypted with 3DES. Decryption is allowed for legacy use, but the goal is to re-encrypt and remove it.
- Treating “encrypted” as “secure”. The algorithm, key length, block size and mode all matter.
What to do: a practical checklist
- Scan your TLS endpoints. Use a TLS scanner (for example, the open-source
testssl.shornmap --script ssl-enum-ciphers) and look for any cipher suite containingDESor3DES. Remove them. - Check VPNs and SSH. Remove
3des-cbcfrom SSH configurations and 3DES from IPsec and OpenVPN proposals. - Review Active Directory. Make sure no accounts or services rely on DES Kerberos encryption types.
- Search code and configs. Look for
DES,DESede,TripleDES,3DESandTDEAin source code, libraries and configuration files. - Ask vendors. For payment terminals, HSMs and industrial devices, ask for a written roadmap to AES.
- Re-encrypt stored data. Decrypt legacy 3DES data and encrypt it again with AES-256 in an authenticated mode such as GCM, with proper key management.
- Document exceptions. If a system truly cannot change yet, record the risk, isolate it, and set a deadline.
WakeWill view
DES is one of the best case studies in security, and not because it was badly designed. Its S-boxes survived attacks that the public did not even know existed. It failed because its security margin was fixed in 1977 while computing power kept doubling.
The same pattern is playing out again with today’s public-key algorithms, which is why WakeWill will later cover post-quantum cryptography. The practical lesson is crypto-agility: build systems so that an algorithm can be swapped without rebuilding everything. Teams that still struggle to remove 3DES in 2026 are showing exactly what happens without it.
For a small team, the priority is simple: make sure nothing internet-facing offers 3DES, and that no new data is encrypted with it. For an enterprise, the harder work is the long tail: payment systems, old appliances and third-party products. That needs an inventory, vendor pressure and a deadline.
FAQ
Is DES still secure? No. A 56-bit key can be found by brute force, and NIST withdrew DES as a standard in 2005.
Is Triple DES still allowed? Not for new encryption. Under NIST guidance it has been disallowed for encrypting data since the end of 2023, and the TDEA specification was withdrawn on January 1, 2024. It is still allowed only for decrypting old data.
What replaced DES? AES, the Advanced Encryption Standard, approved as FIPS 197 in 2001. It uses a 128-bit block and 128-, 192- or 256-bit keys. It is the subject of the next guide in this series.
Was there an NSA backdoor in DES? No backdoor has ever been found. The NSA’s changes to the S-boxes actually made DES more resistant to differential cryptanalysis. The NSA did, however, push for the shorter 56-bit key, and that is what eventually made DES breakable.
What is Sweet32? A 2016 attack on 64-bit block ciphers such as 3DES and Blowfish. It uses block collisions in very long connections to recover secrets such as cookies.
Key takeaways
- DES (1977) uses a 64-bit block, a 56-bit key and 16 Feistel rounds.
- It was broken by brute force: 56 hours in 1998, and about 22 hours in 1999.
- Triple DES runs DES three times, but gives only about 112 bits of security and keeps the weak 64-bit block.
- NIST withdrew DES in 2005, disallowed 3DES encryption after 2023, and withdrew the 3DES standard in 2024.
- Find and remove DES and 3DES from TLS, VPNs, Kerberos, code and stored data, and replace them with AES-GCM.
Next in this series: AES explained: how it works, key sizes and rounds. Related reading: Symmetric vs asymmetric encryption, Hash functions, HMAC and password hashing and all cryptography guides.
This guide was prepared with AI assistance and checked against the sources listed below.
Sources
- NIST: Announcing Approval of the Withdrawal of FIPS 46-3 (DES), FIPS 74 and FIPS 81 (May 19, 2005)
- NIST: NIST Withdraws Outdated Data Encryption Standard (June 2, 2005)
- NIST CSRC: Block Cipher Techniques (history of DEA and TDEA)
- NIST: NIST to Withdraw Special Publication 800-67 Revision 2 (June 29, 2023)
- NIST SP 800-131A Rev. 2: Transitioning the Use of Cryptographic Algorithms and Key Lengths (March 2019)
- EFF: Cracking DES — DES Cracker project page and press releases (1998–1999)
- Don Coppersmith: The Data Encryption Standard (DES) and its strength against attacks, IBM Journal of Research and Development, Vol. 38 No. 3 (May 1994)
- Mitsuru Matsui: Linear Cryptanalysis Method for DES Cipher, EUROCRYPT '93 (Springer)
- Red Hat: SWEET32 — Birthday attacks against TLS ciphers with 64-bit block size (CVE-2016-2183)
Spotted an error or have more information? Contact the editor.