Home CRYPTOGRAPHY PRO

Tap Code: Prison Cipher, Polybius Matrix

Encode text into covert military Tap Code pulses or decode knock rhythms back into readable words using the historical AFLQV 5×5 Polybius square matrix.

Output Format:
Vietnam POW Historical Abbreviations:
0 chars
0 taps
14
Signal Live Beat
Letters 0
Words 0
Total Taps 0

5×5 Polybius Matrix (A-F-L-Q-V)

Row × Column Coordinates (C and K share coordinate 1,3)

Row Mnemonics: A • F • L • Q • V
R \ C 1 2 3 4 5
1 (A)
A
1,1
B
1,2
C/K
1,3
D
1,4
E
1,5
2 (F)
F
2,1
G
2,2
H
2,3
I
2,4
J
2,5
3 (L)
L
3,1
M
3,2
N
3,3
O
3,4
P
3,5
4 (Q)
Q
4,1
R
4,2
S
4,3
T
4,4
U
4,5
5 (V)
V
5,1
W
5,2
X
5,3
Y
5,4
Z
5,5
* Note: In the 5×5 Polybius grid, C and K are merged into coordinate (1,3).

Print & Export Cheat-Sheet

TOOL GIGA – Tap Code Reference Cheat-Sheet

5×5 Polybius Grid • Vietnam POW Transmission Protocol • AFLQV Mnemonics

toolgiga.com/tap-code-generator.php
Row \ Col 1 2 3 4 5
1 (A) A 1,1 B 1,2 C / K 1,3 D 1,4 E 1,5
2 (F) F 2,1 G 2,2 H 2,3 I 2,4 J 2,5
3 (L) L 3,1 M 3,2 N 3,3 O 3,4 P 3,5
4 (Q) Q 4,1 R 4,2 S 4,3 T 4,4 U 4,5
5 (V) V 5,1 W 5,2 X 5,3 Y 5,4 Z 5,5

Historical Vietnam POW Acronyms (Evening Roll Call & Sign-Off)

  • GBU: God Bless You (2,2 • 1,2 • 4,5)
  • GN: Good Night (2,2 • 3,3)
  • ST: Stay Strong (4,3 • 4,4)
  • CUL: See You Later (1,3 • 4,5 • 3,1)
  • NDP: No Damn Panic (3,3 • 1,4 • 3,5)
  • SOS: Emergency Help (4,3 • 3,4 • 4,3)

Transmission Cadence & Rules

1. Row Taps: Tap 1–5 times for the row number.
2. Short Pause: Brief pause between row and column.
3. Column Taps: Tap 1–5 times for the column number.
4. Letter Pause: Medium pause signals completion of a letter.
5. Word Pause: Long pause signals separation between words.

What is Tap Code (Knock Code)?

Tap Code (also known as Knock Code) is a classic acoustic and tactile cipher based on a 5×5 Polybius square. It was famously used by American prisoners of war (POWs) held captive in North Vietnamese prisons during the Vietnam War, including the infamous "Hanoi Hilton" (Hỏa Lò Prison), to communicate covertly through concrete cell walls, metal pipes, and wooden barracks by tapping, coughing, or scraping.

The 5×5 Polybius Square (A-F-L-Q-V Mnemonic)

The Latin alphabet contains 26 letters, but a 5×5 square contains only 25 cells. To fit the entire alphabet into the grid, the letter K is dropped and merged with C (so coordinate 1,3 represents both C and K, resolved by context).

Prisoners memorized the grid using the first letter of each row as an acronym: A - F - L - Q - V.

  • Row 1: A (1,1), B (1,2), C/K (1,3), D (1,4), E (1,5)
  • Row 2: F (2,1), G (2,2), H (2,3), I (2,4), J (2,5)
  • Row 3: L (3,1), M (3,2), N (3,3), O (3,4), P (3,5)
  • Row 4: Q (4,1), R (4,2), S (4,3), T (4,4), U (4,5)
  • Row 5: V (5,1), W (5,2), X (5,3), Y (5,4), Z (5,5)

How Transmission Works

Each character is transmitted as a pair of taps separated by pauses:

  1. Row Taps: First, a sequence of 1 to 5 taps indicates the row number.
  2. Short Pause: A brief silence indicates the transition between row and column.
  3. Column Taps: Next, a sequence of 1 to 5 taps indicates the column number.
  4. Letter Pause: A longer pause signals the completion of the letter.
  5. Word Pause / Slash: An extended pause or double tap signals a space between words.

For example, the word WATER is encoded as: ••••• •• (W: 5,2)    • • (A: 1,1)    •••• •••• (T: 4,4)    • ••••• (E: 1,5)    •••• •• (R: 4,2)

Historical Vietnam POW Acronyms

Because tapping out full sentences against thick concrete was slow and physically exhausting, POWs developed standard 2-to-3 letter acronyms that concluded every evening roll call:

  • GBU: God Bless You (2,2 • 1,2 • 4,5)
  • GN: Good Night (2,2 • 3,3)
  • ST: Stay Strong (4,3 • 4,4)
  • CUL: See You Later (1,3 • 4,5 • 3,1)
  • NDP: No Damn Panic (3,3 • 1,4 • 3,5)

Digital Solipsism & Acoustic Hygiene: From Open-Plan Despair to Drill Virtuosos

Paradoxically, in our twenty-first-century dystopia of digital saturation—where middle management suffocates under torrential Zoom diarrhea and the cacophony of modern open-plan offices—Tap Code enjoys an unexpected renaissance of retro-pragmatism. Rather than firing off a twentieth redundant email to a colleague imprisoned a mere six feet away behind flimsy acoustic baffles, one might far more elegantly employ the Polybius square. A crisp, rhythmic staccato of a ballpoint pen upon the glass partition conveys a laconic N-D-P (No Damn Panic) without corporate bureaucratic sophistry or sanctimonious pleasantries. It is quintessential acoustic hygiene, circumventing digital flotsam while coworkers gaze lethargically at their glowing monitors like penitents staring at solitary confinement ceilings.

An equal measure of therapeutic catharsis awaits residents of modern drywall condominiums and prefabricated apartment blocks. When Sunday morning at the ungodly hour of 7:00 AM awakens the neighborhood rotary-hammer virtuoso, screaming or appealing to civil decency is sheer wasted oxygen—vocal excesses yield nothing. It is vastly more noble and esoteric to retaliate via a rhythmic coin scrape against the communal radiator riser, tapping out a subtle Latin admonition or a dry G-N sign-off. This clandestine epistolary dialogue through the plasterboard not only baffles the overzealous handyman but also imparts a delicious flavor of historical dissidence to petty domestic exasperation—after all, it feels decidedly more heroic to roleplay a Cold War operative than simply endure the indignity of being an insomniac tenant in a cardboard box.

FAQ (Frequently Asked Questions)

How do you distinguish between the letters C and K in Tap Code?

In the 5×5 Polybius matrix, C and K share the identical coordinate (Row 1, Column 3). The receiver distinguishes between them through natural language context (for example, "LOCAT" vs "LOCK"). In ambiguous situations, "C" was typically the default choice.

Who invented the Tap Code and when was it used?

While based on the ancient Greek Polybius cipher (circa 150 BC) and 19th-century Russian revolutionary prison taps, the modern Tap Code was popularized by four American POWs (Captain Carlyle "Smitty" Harris, Lieutenant Phillip Butler, Lieutenant Robert Peel, and Lieutenant Commander Robert Shumaker) in June 1965 at the Hỏa Lò Prison in Vietnam.

How are numbers and punctuation transmitted in Tap Code?

Standard Tap Code encodes only the 26 letters of the Latin alphabet. Numbers are typically spelled out as words (e.g., "ONE", "TWO", "THREE"), and punctuation marks are omitted or represented by short pauses and abbreviations like "STOP" for periods.

Can I listen to the acoustic knocks in real time with this tool?

Yes! The built-in audio synthesizer uses the HTML5 Web Audio API to produce realistic resonant knock pulses directly in your browser with adjustable speed (WPM) without uploading any data to external servers.

What is the difference between Morse Code and Tap Code?

Morse code uses variable-length combinations of short (dots) and long (dashes) tones with complex timings. Tap code uses uniform, single-pitch mechanical pulses structured in simple row-column coordinate pairs (1 to 5), making it much easier to transmit through solid walls with simple knocking or scraping.

Copied!