Tap Code
5×5 grid, knuckles on a wall — POWs communicating through prison cells
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.
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.
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)
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.
| Concept from Tap Code | Modern Evolution |
|---|---|
| Polybius square basis | Coordinate encoding: the 2,100-year-old Polybius idea is still in use |
| Tap timing as signal | Timing channels: side-channel attacks exploit timing differences in crypto systems |
| No cryptographic key | Shared context: security through shared knowledge rather than formal key exchange |
| Exhibit | 33 of 37 |
| Era | Korean War · Vietnam War |
| Security | Broken |
| Inventor | US POWs · Korean War era |
| Year | ~1950s |
| Key Type | 5×5 Polybius grid (no key) |
| Broken By | Frequency analysis · Grid deduction |