Encryption Standard and Ciphers · Cryptography and Network Security

Multiple Encryption

Watch lectures

Multiple Encryption

1. Why Encrypt Twice? (Motivation from DES's Death)

DES's 56-bit key fell to brute force (2552^{55} average, EFF 56 hours), but DES hardware was everywhere — replacing it overnight was impossible. Multiple encryption reuses the DES circuit 2–3 times with independent keys to stretch effective strength without new hardware. Question: does EK2(EK1(P))E_{K2}(E_{K1}(P)) double security to 21122^{112}? Answer: NO for double (meet-in-the-middle), YES-ish for triple (Topic 4).

2. Double Encryption and Meet-in-the-Middle (Worked Attack)

C=EK2(EK1(P))    ⇒    DK2(C)=EK1(P)=XC = E_{K2}(E_{K1}(P)) \;\; \Rightarrow \;\; D_{K2}(C) = E_{K1}(P) = X

Attacker with one known (P,C)(P, C): compute EK(P)E_{K}(P) for all 2562^{56} KK (table A), compute DK(C)D_{K}(C) for all 2562^{56} KK (table B), match XX values — each match is a candidate (K1,K2)(K_1, K_2) (false positives filtered with a second pair). Cost: 256+256=2572^{56} + 2^{56} = 2^{57} encryptions + 2562^{56} storage — barely more than single DES's 2552^{55}! Effective strength ≈257\approx 2^{57}, NOT 21122^{112}.

Worked numbers: single DES brute force 2552^{55} avg; double-DES MITM 2572^{57} worst-case time + 2562^{56} blocks memory (≈1018\approx 10^{18} bytes — infeasible storage in 1998, feasible-ish for agencies today, but time gain nil). Lesson: naive key-length addition fails against MITM; storage–time tradeoff kills double encryption.

3. Design Rules Multiple Encryption Teaches

  • Encrypt-decrypt-encrypt (EDE): C=EK3(DK2(EK1(P)))C = E_{K3}(D_{K2}(E_{K1}(P))) with K1=K2K_1 = K_2 collapsing to single DES (backward compatibility with legacy single-DES boxes) — the Triple-DES trick (Topic 4).
  • Independent keys required: same key twice (K1=K2K_1 = K_2) gains nothing; related keys invite related-key attacks.
  • More stages ≠ proportional gain: security grows only if the construction defeats MITM (odd stages: 3DES ≈2112\approx 2^{112} vs MITM 21122^{112} with 2562^{56} data — genuine gain).
  • Modern answer: just use AES-128 (21282^{128}, one pass) instead of stacking broken ciphers — multiple encryption was a migration bridge, not a design goal.

Exam Points

  • MITM equation DK2(C)=EK1(P)D_{K2}(C) = E_{K1}(P) + 2572^{57} time / 2562^{56} memory numbers — 5-mark numerical core.
  • "Double DES ≈ single DES strength" conclusion with storage-time reasoning.
  • EDE backward-compatibility logic (bridge to Triple DES).
  • Modern lesson: AES replaces stacking.
Student FinanceWeb Platform

Pocketly — Personal Finance for Students

Keep your hostel and college expenses under control. Track accounts, log spending in seconds, and stay within your monthly budget.

← All Cryptography and Network Security modules

Multiple Encryption — Cryptography and Network Security — PYQDeck