Exhibit 33 of 37 Korean War · Vietnam War Broken

Tap Code

5×5 grid, knuckles on a wall — POWs communicating through prison cells

InventorUS POWs · Korean War era
Year~1950s
Key Type5×5 Polybius grid (no key)
Broken ByFrequency analysis · Grid deduction
Modern LessonNon-electronic covert communication

Why This Matters

American POWs in Vietnam used the Tap Code to communicate through prison walls, coordinate resistance, and sustain morale for years of captivity. It requires no materials, no equipment — only a shared knowledge of the Polybius grid.

📜Historical Context

The Tap Code was used by American prisoners of war in Korea and Vietnam to communicate between cells by tapping on walls, pipes, or floors. It requires no materials, no equipment, and no preparation — only a shared knowledge of the 5×5 grid. POWs at the Hanoi Hilton (Hoa Lo Prison) used it to maintain communication, coordinate resistance, share intelligence, and sustain morale throughout years of imprisonment.

Senator John McCain and other Vietnam POWs described the Tap Code as essential to survival. The system was simple enough to learn from other prisoners through tapped tutorials through walls.

⚙️How It Works
5×5 grid (C=K, no duplicate):
   1  2  3  4  5
1  A  B  C  D  E
2  F  G  H  I  J
3  L  M  N  O  P
4  Q  R  S  T  U
5  V  W  X  Y  Z

Each letter = two groups of taps:
Row first, then column
Pause between groups, longer pause between letters

H = row 2, col 3 = tap-tap · tap-tap-tap
E = row 1, col 5 = tap · tap-tap-tap-tap-tap

Common abbreviations used to speed up:
GN = good night, GBU = God bless you
SHF = shuffle (guards coming)
5x5 TAP CODE GRID 12345 1 A B C/K D E 2 F G H I J 3 L M N O P 4 Q R S T U 5 V W X Y Z H = Row 2, Col 3: (pause) (long pause) tap-tap (pause) tap-tap-tap Not about secrecy — about connection between isolated prisoners
Each letter = two sets of taps (row, column) on a wall — a lifeline for POWs in solitary confinement
💀How It Was Broken

The human dimension: The Tap Code was never cryptographically secure — any guard who understood the system could intercept messages. Its value was not cryptographic but human: it maintained communication, solidarity, and command structure among prisoners in solitary confinement. Sometimes the purpose of a cipher is not secrecy but connection.

🔬What It Teaches Modern Cryptography
Concept from Tap CodeModern Evolution
Polybius square basisCoordinate encoding: the 2,100-year-old Polybius idea is still in use
Tap timing as signalTiming channels: side-channel attacks exploit timing differences in crypto systems
No cryptographic keyShared context: security through shared knowledge rather than formal key exchange
Quick Facts
Exhibit33 of 37
EraKorean War · Vietnam War
SecurityBroken
InventorUS POWs · Korean War era
Year~1950s
Key Type5×5 Polybius grid (no key)
Broken ByFrequency analysis · Grid deduction
← Previous Bacon's Cipher