|Roman alphabet tap code|
|The tap code table|
The tap code, sometimes called the knock code, is a way to encode text messages on a letter-by-letter basis in a very simple way. The message is transmitted using a series of tap sounds, hence its name.
The tap code has been commonly used by prisoners to communicate with each other. The method of communicating is usually by tapping either the metal bars, pipes or the walls inside a cell.
The listener only needs to discriminate the timing of the taps to isolate letters.
Each letter is communicated by tapping two numbers
- the first designating the row
- the second designating the column
For example, to specify the letter "B", one taps once, pauses, and then taps twice.
Or to communicate the word "water", the cipher would be the following (the pause between each number in a pair is smaller than the pause between letters):
The letter "X" is used to break up sentences, and "K" for acknowledgements.
Because of the difficulty and length of time required for specifying a single letter, prisoners often devise abbreviations and acronyms for common items or phrases, such as "GN" for Good night, or "GBU" for God bless you.
By comparison, Morse code is harder to send by tapping or banging because it requires the ability to create two differently sounding taps (representing the dits and dahs of Morse code). A Morse code novice would also need to keep a "cheat sheet" until he or she remembers every letter's code, which the captors would likely confiscate. Tap code can be more easily decoded in one's head by mentally using the table. For example, if you hear four knocks, you would think A… B… C/K… D as the count increased; then after the pause, you hear three knocks and think I… O…to arrive at the letter O.
The origins of this encoding go back to the Polybius square of Ancient Greece. As the "knock code", a Cyrillic script version is said to have been used by nihilist prisoners of the Russian czars. The knock code is featured in Arthur Koestler's classic 1941 work Darkness at Noon.
United States prisoners of war during the Vietnam War are most known for having used the tap code. It was introduced in June 1965 by four POWs held in the Hỏa Lò Prison "Hanoi Hilton" prison: Captain Carlyle "Smitty" Harris, Lieutenant Phillip Butler, Lieutenant Robert Peel, and Lieutenant Commander Robert Shumaker. Harris had heard of the tap code being used by prisoners in World War II and remembered a United States Air Force instructor who had discussed it as well.
In Vietnam, the tap code became a very successful way for otherwise isolated prisoners to communicate. POWs would use the tap code in order to communicate to each other between cells in a way which the guards would be unable to pick up on. They used it to communicate everything from what questions interrogators were asking (in order for everyone to stay consistent with a deceptive story), to who was hurt and needed others to donate meager food rations. It was easy to teach and newly arrived prisoners became fluent in it within a few days. It was even used when prisoners were sitting next to each other but not allowed to talk, by tapping on anothers' thigh. By overcoming isolation with the tap code, prisoners were said to be able to maintain a chain of command and keep up morale.
- "'Return with Honor': The Tap Code". American Experience. PBS. 1999. Retrieved 2008-04-08.
- David Kahn, The Codebreakers – The Story of Secret Writing. 1967. ISBN 978-0-684-83130-5.
- Koestler, Arthur, Darkness at Noon (1941). Translated by Daphne Hardy. See page 19 of the Bantam Publishing paperback, 1981 printing for more info.
- Staff Sgt. Jason Tudor (1998-03-18). "Vets, Flyers discuss ideology, time in POW camps". Air Force News Service. Retrieved 2008-04-08.
- McCain, John; Mark Salter (1999). Faith of My Fathers. Random House. pp. 211–12. ISBN 0-375-50191-6.
- Brace, Ernest C. (1988). A Code to Keep: The true story of America's longest held civilian prisoner of war in Vietnam. St. Martin's Press. pp. 171–72, 187–88. ISBN 0-7090-3560-8.