Home › Ciphers › Seriated Playfair Cipher
Seriated Playfair Cipher
Take Playfair and turn it sideways. In ordinary Playfair the digraphs are neighbours in the text; in Seriated Playfair — an American Cryptogram Association staple, described by Helen Fouché Gaines in her 1939 Cryptanalysis — the message is first seriated: written into blocks of two rows, the period's width across, so the digraphs the square enciphers are the vertical pairs those rows form, one letter standing over another that began life a whole period away. The square, the three digraph rules and the J-merger are Playfair's own; what changes is which letters get paired, and that change is the whole cipher. This tool implements the ACA form exactly, and its defaults reproduce the ACA specification sheet's own worked example letter for letter.
The seriated Playfair cipher is a digraph substitution: the plaintext is dealt into two-row blocks of a chosen period, the vertical pairs are enciphered by the ordinary Playfair rules on a keyword square, and the ciphertext is read back off row by row. A null rule keeps any vertical pair from doubling a letter.
The Playfair family's block form. Key: a keyword square plus a period (6 and 7 in the published examples).
Encode or decode — the ACA sheet's example is loaded
Square LOGAR / ITHMB / CDEFK / NPQSU / VWXYZ · blocks COMEQU/ICKLYW · ENEEDH/XELPIM · MEDIAT/ELYTOM · 18 vertical pairs
Everything runs in your browser — nothing is uploaded.
Seriate first, then Playfair as usual
Build the square as in Playfair: keyword first (LOGARITHM here), repeats dropped, the rest of the 25-letter alphabet (J merged into I) after it, filled by rows. Then comes the step that names the cipher. Strip the message to letters, convert J to I, and deal it into blocks of two rows of the period's width — row 1 left to right, then row 2, then the next block. One refinement decides everything: while dealing, if the letter about to land in row 2 is identical to the letter directly above it, a null letter X is dealt in first (Q when the letter above is itself X), pushing the real letter one cell along — and the shift can carry across a block boundary, as it does in the loaded example, where a displaced M opens the third block. The last block, if it falls short, is re-dealt into two balanced rows and its second row padded with the same filler. Encipher each column pair by the Playfair rules (same row: step right; same column: step down; otherwise the rectangle's other corners), write the pair's first letter back into row 1 and its second into row 2, and read the ciphertext off row by row within each block.
Decoding reverses the pairs exactly and returns the seriated stream with its nulls and padding still in it — the stream for the loaded example decodes to COMEQUICKLYWENEEDHXELPIMMEDIATELYTOM, the null X standing where it was inserted. Deleting nulls safely takes a reader's eye, so the tool never strips them silently. Why seriate at all? Ordinary Playfair's weakness is its digraphs: they are the language's own adjacent pairs, so their frequencies (TH, HE, IN…) survive into the ciphertext almost undisturbed, and a solver reads them like a league table. Seriation breaks the adjacency before the square ever sees the text. The pairs the square enciphers are (letter 1, letter 8), (letter 2, letter 9)… at period 7 — pairs that were never neighbours, whose joint statistics are close to the product of two single-letter frequencies. The digraph league table flattens, and with it goes the standard Playfair attack's first handhold. The null rule helps twice: it keeps the square's forbidden doubled pairs from ever forming, and it makes the seriated stream longer than the plaintext by a data-dependent amount, so even the message length stops being a clean multiple of anything the solver can trust.
A Gaines refinement of Wheatstone's square
The parent system is Charles Wheatstone's 1854 invention, popularised by Lord Playfair — the digraph square that taught the nineteenth century a cipher could work on pairs. The seriated form belongs to the American amateur tradition that refined the classical catalogue between the wars: Helen Fouché Gaines described it in Cryptanalysis (1939, first published as Elementary Cryptanalysis), the book that codified half the systems the ACA still uses, and the ACA's own teaching literature — Practical Cryptanalysis among it — prints the LOGARITHM example this page opens on, period 6, as the type's specimen. The ACA still sets Seriated Playfair in its Cipher Exchange, typically ten to fifteen groups of pairs, at periods 6 and 7 in the published examples.
The loaded example, seriated
| Square (LOGARITHM) | LOGAR / ITHMB / CDEFK / NPQSU / VWXYZ |
|---|---|
| Block 1 | COMEQU / ICKLYW |
| Block 2 | ENEEDH / XELPIM — the X is the null: without it, row 2 would open with the E already standing above it |
| Block 3 | MEDIAT / ELYTOM — the M displaced by block 2's null opens this block |
Read the pairs down the columns — (C,I), (O,C), (M,K)… — encipher each on the square, and read the answers back along the rows: NLBCSP CDFGXZ QQCDCM GCGQTB HCFTRH FGWHGB, which the ACA sheet prints regrouped in fives.
Two published vectors, reproduced exactly
Example 1 — the ACA specification sheet's example
Keyword LOGARITHM, period 6 — the sheet's own example, and the tool's loaded default. The seriation runs COMEQU / ICKLYW, then ENEEDH over XELPIM (the null X doing its work), then MEDIAT / ELYTOM. Enciphering the eighteen vertical pairs gives the ciphertext above, matching the sheet group for group.
Example 2 — CryptoCrack's Babbage quotation
A second, independent pin: CryptoCrack's worked example enciphers the full text it prints — headed "Babbage's rule," quoting "No man's cipher is worth looking at unless the inventor has himself solved a very difficult cipher," and signed off "The Codebreakers by Kahn" — under the keyword SERIATEDPLAYFAIR (square SERIATDPLYFBCGHKMNOQUVWXZ) at period 7, producing 116 ciphertext letters. The engine reproduces all 116, including the short final block (AH over NX), which is what fixes this implementation's balanced-rows rule for a block that falls short. Set keyword SERIATEDPLAYFAIR and period 7 above and type the text as CryptoCrack prints it, heading and attribution included, to run it.
First find the period, then the square
The ACA's own solving literature names the first task: the period. Write the ciphertext out at candidate periods and look for the tell — at the wrong period, some vertical pair consists of the same letter twice, which the null rule makes impossible at the true period; in the sheet's analysis of its own example, every period from 4 to 10 except 6 produces a doubled vertical pair and is eliminated on sight. With the period fixed, the attack becomes a search over keyword squares against digraph statistics — but statistics of pairs that were never neighbours, which is the whole point of the system: the ciphertext's digraph frequencies are far flatter than ordinary Playfair's, and hill-climbing needs more text to grip. The ACA rates its cons at ten to fifteen groups for a reason.
- Security status: a strong classical system — period recovery plus a square search, with flattened digraph evidence.
- What gives it away: 25-letter alphabet (no J), even length, and — at the right trial period — no doubled vertical pair anywhere.
- The working order: eliminate periods by the doubled-pair test, then hill-climb the square.
The Playfair family
| Relative | How it differs | Solve it with |
|---|---|---|
| Playfair | Adjacent digraphs, one square, doubles split by inserted X | The Playfair page |
| Two-square / four-square | Rectangles read across two or four squares instead of one | The Two-Square and Four-Square pages |
| Slidefair | The same rectangle idea moved onto the Vigenère tableau, keyed per digraph | The Slidefair page |
| Seriated Playfair | The only family member whose preparation step is itself a small transposition | This page |
If a found example will not open here, check the period first — it is half the key — then whether the constructor's null was X at all: the ACA's rule is the one stated on this page, but puzzle setters have used other filler letters, and a foreign null shows up as one recurring stranger in the decoded stream.
The connoisseur's Playfair
Seriated Playfair lives where the ACA lives: the Cipher Exchange's monthly cons, where constructors set it precisely because it punishes the league-table attack that opens its parent. It is the Playfair variant a solver graduates to — same square, same three rules, but the pairing discipline of a transposition laid over the substitution, a small lesson in how layering two weak-looking ideas produces a system stronger than either. Outside the Exchange it appears in advanced puzzle hunts and cipher challenges that want Playfair's flavour without Playfair's giveaway frequencies.
Seriate one by hand
Practice 1 — seriate MEET ME AT DAWN at period 4 (LOGARITHM square)
Twelve letters, and the null rule fires twice in the first block: row 2's opening M would land under row 1's M, and its E under row 1's E — each pushes a null in first and shifts the dealing.
Reveal the answer
The seriated blocks are MEET / XMXE and ATDX / AWNQ — two nulls in block 1, and the final short block re-dealt into balanced rows with its own inserted null (the Q keeps a doubled pair from forming). Enciphered: HFQHYHGDADCGAOPX. Check it in the tool: keyword LOGARITHM, period 4.
Practice 2 — decode NLBCSP at period 6 (LOGARITHM square)
Six letters make half a block: firsts NLBCSP pair with the seconds that follow them in the full stream — take the first block of the loaded example's ciphertext, NLBCSPCDFGXZ, and decode it.
Reveal the answer
COMEQUICKLYW — the pairs (N,C), (L,D), (B,F), (C,G), (S,X), (P,Z) decrypt to (C,I), (O,C), (M,K), (E,L), (Q,Y), (U,W), and the stream reads row 1 then row 2: COMEQU + ICKLYW.
Frequently asked questions
How is this different from ordinary Playfair?
The square and the three digraph rules are identical. Only the pairing changes: Playfair pairs neighbouring letters and splits doubles; Seriated Playfair first writes the message into two-row blocks and pairs each letter with the one a period below it, with a null-insertion rule that fires when a pair would otherwise be a doubled letter standing over itself.
What period should I use?
The period is part of the key and must be agreed, not guessed: the ACA's own example uses 6, CryptoCrack's uses 7, and period 7 is the commonest in ACA practice. Nothing in the system forces a default, so the tool takes the period as an explicit control rather than hiding one.
Why does the decoded text contain extra X letters?
Those are the nulls and the final padding, returned deliberately. A null X and a genuine plaintext X are indistinguishable to any machine, so the tool shows the exact seriated stream and leaves the striking-out to the reader — the same convention as the parent Playfair tool.
Can I paste my own square?
Yes — the custom square field overrides the keyword, validated strictly (25 letters, no J, no repeats). Squares built by routes other than rows (spirals, columns) can be pasted in this way and will encipher identically.