Cipher Table

Tap code

A way to spell through a wall. Each letter is two bursts of knocks, the first for its row and the second for its column.

How the tap code works

The alphabet is laid out in a five-by-five grid, with K left out:

     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

To send a letter, tap its row number, pause briefly, tap its column number, then leave a longer pause before the next letter. The letter H is in row 2, column 3: tap tap … tap tap tap.

In the tool above, each dot is one tap. A single space separates a letter’s row from its column, a double space separates letters, and a slash separates words.

Regular users develop shorthand, much like text messaging. GN for good night; GBU for God bless you.

History

The tap code is a Polybius square sent by sound. Prisoners in Tsarist Russia used a version based on the Russian alphabet in the nineteenth century; it features in Arthur Koestler’s 1940 novel Darkness at Noon, where prisoners in neighbouring cells converse by tapping on the wall.

It is best known from the Vietnam War. In 1965 four American prisoners held at Hỏa Lò prison in Hanoi, among them Captain Carlyle “Smitty” Harris, who remembered an instructor mentioning the code during survival training, began using it to communicate between cells. It spread throughout the prison system. Men kept in solitary confinement for years used it to pass names, news and encouragement, and to hold together a chain of command, by tapping on walls, sweeping in rhythm, and coughing.

It works without any equipment and can be learned in minutes, which is exactly what its circumstances demanded.

Questions people ask

How do you read tap code?

Count the taps in the first group to find the row, then the taps in the second group to find the column, and read the letter where they cross. Four taps, pause, three taps is row 4, column 3, which is S.

Why is there no K?

The grid has 25 cells for 26 letters. In tap code K is dropped and C is used in its place, so "KNOCK" is tapped as "CNOCC". The reader works out which is meant.

Why not just use Morse code?

Morse needs two different signals, a short one and a long one. A knock on a wall is only ever a knock; you can't make it longer. Tap code needs only one kind of sound and a sense of rhythm.

Can I type tap code as numbers?

Yes. In the right-hand pane you can enter either dots, such as ".... ...", or digits, such as "4 3", and it will decode both.