The Tap Code Cipher is a substitution cipher that encodes letters based on their position in a 5x5 Polybius square, typically combining the letters I and J. Each letter is represented by two numbers: the row and column where it appears in the square. These numbers are then expressed as a series of taps, with the number of taps indicating the row and column.

The Tap Code was historically used for secret communication, particularly in situations where only simple tapping or knocking could be used, such as in prisons or covert signaling. Its simplicity makes it easy to transmit messages using only sounds, knocks, or other repetitive signals.

Tap Code Cipher: Encoding

To encode a message, locate each letter in the Polybius 5x5 grid (merging I/J), note its row and column, then represent each number with a series of taps. For example, using the standard 5x5 grid:

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

Example: Encode "HELLO"

H → Row 2, Column 3 → .. ... 
E → Row 1, Column 5 → . ..... 
L → Row 3, Column 1 → ... . 
L → Row 3, Column 1 → ... . 
O → Row 3, Column 4 → ... ....

Ciphertext (taps separated by |):
.. ... | . ..... | ... . | ... . | ... ....

Tap Code Cipher: Decoding

To decode, split the sequence by | and count the taps in each group. The first count indicates the row, the second the column. Map back to the letter in the grid:

Ciphertext: .. ... | . ..... | ... . | ... . | ... ....

Decoding Steps:
.. ...   → H
. ..... → E
... .   → L
... .   → L
... ....→ O

Plaintext: HELLO

Tap Code Cipher: Notes

- The Tap Code is ideal for non-verbal signaling, such as tapping on walls, knocking, or drumming. - Each letter is uniquely identified by two numbers (row and column). - Spaces between words can be represented by a pause or a predefined separator in the tapping sequence. - Its strength lies in its practicality for situations with limited communication tools rather than strong cryptographic security.

Tap Code

T