Skip to content
uencoder

3DES (Triple DES)

Triple DES (3DES) strengthens DES by encrypting each data block three times with 56-bit keys in an encrypt-decrypt-encrypt (EDE) sequence, yielding 168 bits of key material, and served as the transitional cipher between DES and AES.

Purpose

It provided a DES-backward-compatible security upgrade that resists brute-force attacks on DES before AES became widespread.

Mechanism

Ciphertext = E_K3(D_K2(E_K1(plaintext))). Setting K1=K3 gives 2-key 3DES with 112 effective bits; setting K1=K2=K3 degrades to single DES for backward compatibility. The block size stays 64 bits, and throughput is about one third of DES.

Use cases

  • EMV chip cards in the financial industry
  • Legacy PGP key encryption
  • S/MIME compatibility profiles
  • Legacy system migration

Examples

  • Input
    K1,K2,K3 + data
    Output
    8-byte ciphertext

    EDE mode

Common errors

2-key 3DES is vulnerable to Sweet32 birthday attacks
Migrate to AES-256

Related terms

Related tools

References