Tap Code (Prison) Cipher
Convert text to pairs of taps (5×5 prison tap code) and back — visual representation included.
—
The tap code: the square turned into sound
The tap code is the Polybius square transmitted by sound. Each letter is a row and a column of the five-by-five grid, and each number becomes that many knocks with a pause in between. The letter C, first row and third column, is one knock, pause, three knocks. It became known through use among prisoners of war in Vietnam, who passed it along through cell walls.
The page converts both ways: text into taps, represented as dots, and taps back into text. The grid drops K, written as C — the same solution the Polybius square uses to fit 26 letters into 25 cells, only choosing a different pair. A word break appears as a longer pause.
The ingenuity of the system lies in what it requires: nothing. No paper, no light, no elaborate agreed code — just the memorised grid, which fits into a minute of explanation. That is what let it spread among prisoners who had never met, taught knock by knock by those who already knew. It is a rare case of a cipher whose main quality is how easily it travels.
Frequently asked questions
Why does K become C?
Is it a secure cipher?
How is the end of a word marked?
Related Tools
Polybius Square Cipher
Encrypt and decrypt messages with the Polybius square, which turns each letter into a pair of digits on a 5×5 grid (with I and J combined).
Columnar Transposition Cipher
Encrypts or decrypts text by writing it in rows under a keyword and reading the columns in alphabetical key order, padding the last row with X.
Playfair Cipher Step by Step
Encrypt/decrypt with Playfair showing the 5×5 matrix, letter pairs and the rule applied to each digram.
Bifid Cipher with Custom Key
Encrypts text with the Bifid cipher using a 5x5 Polybius square built from your keyword, merging I and J and interleaving row and column coordinates.
Rail Fence Cipher
Encrypts messages with the Rail Fence (zigzag) cipher, spreading letters across N rails and reading rail by rail. A classic transposition cipher for learning cryptography.
Vigenère Cipher
Encrypt and decrypt text with the polyalphabetic Vigenère cipher using a keyword. More robust than Caesar by using multiple shifts. Everything in your browser.