Tap Code
5×5 grid, knuckles on a wall — POWs communicating through prison cells
Frequency analysis · Grid deduction
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.
Carlyle “Smitty” Harris taught an existing tap code to fellow American POWs in Vietnam in 1965. The U.S. Air Force’s account identifies it as an older communication method, rather than an invention by Harris or by Korean War prisoners. 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 Users can agree on abbreviations to reduce tapping. The grid itself does not define a standard abbreviation list.
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 | A publicly known grid provides encoding, not cryptographic confidentiality; concealment of the signalling is a separate issue |
| Exhibit | 34 of 172 |
| Era | Vietnam War · earlier precedents |
| Trust | Broken |
| Introduced to fellow POWs | Carlyle Harris · Vietnam, 1965 |
| Year | 1965 Vietnam use; not an invention date |
| Key Type | 5×5 Polybius grid (no key) |
| Broken By | Frequency analysis · Grid deduction |