STATION 25 / FIELD MANUAL
← Back to crypto libraryFour-square
Digraph
Four-square uses two ordinary squares to locate a plaintext pair and two keyed squares to supply ciphertext. It substitutes digraphs without Playfair's duplicate-pair separation rule.
How to recognise it
Four aligned squares and two keywords are characteristic setup clues. Output is usually handled in pairs, but paired ciphertext alone is not proof. Use the stated square arrangement rather than assuming every diagram uses the same placement.
Worked example: encrypt CAT
Merge I/J and append X to the odd-length input: CA TX. Ordinary squares are top-left and bottom-right. Build top-right with ZEBRA and bottom-left with WOLF, removing duplicate keyword letters and appending unused letters:
Ordinary (TL) Key ZEBRA (TR)
A B C D E Z E B R A
F G H I K C D F G H
L M N O P I K L M N
Q R S T U O P Q S T
V W X Y Z U V W X Y
Key WOLF (BL) Ordinary (BR)
W O L F A A B C D E
B C D E G F G H I K
H I K M N L M N O P
P Q R S T Q R S T U
U V X Y Z V W X Y Z
- Locate C in TL (row 1, column 3) and A in BR (row 1, column 1).
- Take TR at C's row and A's column: Z. Take BL at A's row and C's column: L. Thus CA → ZL.
- T in TL is (4,4), X in BR is (5,3). TR(4,3)=Q and BL(5,4)=Y, so TX → QY.
- Result: ZLQY.
Work backwards: decrypt ZLQY
For ZL, find Z in TR at (1,1) and L in BL at (1,3). Recover TL(1,3)=C and BR(1,1)=A. For QY, Q in TR is (4,3) and Y in BL is (5,4), giving TL(4,4)=T and BR(5,3)=X. Rejoin CATX, then remove the agreed trailing filler to obtain CAT.
Conventions and common mistakes
The first ciphertext letter always comes from TR here, the second from BL. Exchanging the keyed squares changes the result. Unlike Playfair, repeated plaintext letters do not require a filler between them.
Related methods
- Playfair — Compare a different digraph-square construction.
- Keyword substitution — How to build a keyed alphabet without duplicates.
Useful desk reference
5×5 worksheets — Build and label the squares used by the example.