The Three Square Cipher is a classical polygraphic substitution cipher that encrypts pairs of letters using three separate keyed squares. It is closely related to the Playfair Cipher and the Two-Square Cipher, but increases complexity by introducing a third square, which enhances diffusion and reduces recognizable patterns in the ciphertext.
The cipher uses three 5×5 matrices (typically combining I/J) constructed from three different keywords. During encryption, each pair of plaintext letters (digraph) is transformed using coordinates derived from these squares. The first letter interacts with the first and second squares, while the second letter interacts with the second and third squares. This layered mapping results in ciphertext digraphs that are less predictable than those produced by simpler digraphic ciphers.
Three Square Cipher: Encoding
To encrypt using the Three Square Cipher, the plaintext is divided into digraphs. If necessary, padding (commonly “X”) is added to ensure an even number of letters. Three keyed squares are then constructed using the provided keywords. For example:
Plaintext: HELLOTHREESQUARE
Key 1: KEYONE
Key 2: KEYTWO
Key 3: KEYTHREE
Ciphertext:
GEMLTTMOEEQQVROYEach pair of letters is processed by locating their positions within the squares and substituting them using a cross-coordinate method. The middle square acts as a bridge between the first and third squares, increasing the cipher’s complexity and reducing direct positional relationships between plaintext and ciphertext.
Three Square Cipher: Decoding
Decoding the Three Square Cipher requires reconstructing all three keyed squares and reversing the digraph substitution process. Each ciphertext pair is mapped back through the squares to recover the original plaintext:
Ciphertext: GEMLTTMOEEQQVROY
Key 1: KEYONE
Key 2: KEYTWO
Key 3: KEYTHREE
Plaintext:
HELLOTHREESQUAREBecause the cipher relies on three coordinated grids, any error in key construction or digraph mapping will result in incorrect decryption.
Three Square Cipher: Notes
The Three Square Cipher improves upon earlier digraphic systems by increasing substitution complexity. Key characteristics include:
- Type: Polygraphic substitution cipher (digraph-based)
- Grids: Three 5×5 squares (I/J typically combined)
- Keys: Three separate keywords
- Encryption unit: digraphs (pairs of letters)
- Padding: used if plaintext length is odd (commonly “X”)
- Strengths: stronger than Playfair and Two-Square due to additional grid interaction
- Weaknesses: still vulnerable to advanced digraphic analysis and modern computation
The Three Square Cipher represents an evolutionary step in classical cryptography, demonstrating how adding additional transformation layers can significantly increase complexity. It serves as a useful bridge between traditional hand ciphers and more advanced multi-stage encryption systems.