Home › Ciphers › Straddling Checkerboard
Straddling Checkerboard Cipher
The straddling checkerboard is the smartest small idea in hand cryptography: a 3-by-10 grid that gives the eight commonest letters a one-digit code and everything else two digits, so English compresses as it encrypts — and, crucially, the digit stream has no seams: because no one-digit code begins with either of the two "straddle" digits, a receiver can parse the stream unambiguously with no separators. Born in the Spanish Civil War, it became the first stage of the VIC cipher, the most sophisticated hand system ever fielded. This page builds the board from your choice of top row and straddle digits, encodes and decodes with it, and states its digit-handling rule openly — the detail most write-ups quietly fudge.
A straddling checkerboard substitutes letters with digits from a 3×10 grid: eight frequent letters sit in the top row under single digits; the other eighteen letters and the figure shift fill two rows reached by a pair of prefix ("straddle") digits. The output is a pure digit stream that parses itself — no spaces, no ambiguity — ready to feed a second stage such as transposition or additive key.
The engine inside the VIC cipher; the first stage of most serious hand systems of the twentieth century.
Encode or decode — the ACA frequency board is loaded
Top row: E=0 T=1 A=3 O=4 I=5 N=7 S=8 H=9 · lower rows begin 2 and 6 · figure shift code 69
Everything runs in your browser — nothing is uploaded.
Why the stream parses itself
Write the digits 0–9 across the top. Choose two of them as straddles — say 2 and 6. The eight remaining columns hold the eight commonest letters (the loaded board uses the English frequency order E T A O I N S H), each encodable as its single column digit. The two straddle columns head two full rows beneath: the remaining eighteen letters in alphabetical order, then a full-stop cell and a figure-shift cell, addressed as straddle-then-column — 20–29 and 60–69. Now read any output stream left to right: a digit that is not a straddle is a complete letter; a straddle digit announces "one more digit follows." The parse can never slip, because the code is prefix-free by construction — that is the whole invention, and it is what lets the output feed a second stage (an additive key in VIC) digit by digit without the stages losing sync.
Digits in the plaintext need a convention, and here is this tool's, stated plainly because period practice varied: the board's last cell is a figure shift, code 69 on the loaded board. On encode, a run of figures is written as the shift, then each figure as the first straddle digit plus the figure itself (6 becomes 26), then the shift again to close — so the 6 in the example below travels as 69 26 69; the decoder stays in figure mode until the closing shift. Other punctuation is dropped, as period traffic dropped it; anything that must survive — times, grid references — is spelled or shifted. The board itself is the key: the top-row letters and the straddle choice are the secret, changeable per message or per day.
From Spain to the VIC network
The straddling checkerboard is generally traced to Soviet tradecraft of the Spanish Civil War period, where digit-stream systems that could feed later stages were exactly what clandestine radio traffic needed; David Kahn's account of the VIC case made it famous. In VIC — the system used by the Soviet illegal Reino Häyhänen in 1950s Brooklyn, betrayed in the end not by cryptanalysis but by the defection of its operator — the checkerboard was stage one of three, its output digit stream combined with a lagged-Fibonacci key and columnar transpositions. The board outlived the network: it remains the standard first stage in the ACA's repertoire and the textbook example of a prefix code built by hand, decades before "prefix code" was a phrase.
The loaded board, printed in full
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | |
|---|---|---|---|---|---|---|---|---|---|---|
| Top | E | T | · | A | O | I | · | N | S | H |
| Row 2 | B | C | D | F | G | J | K | L | M | P |
| Row 6 | Q | R | U | V | W | X | Y | Z | . | FIG |
The two dotted top cells are the straddle columns — the only columns with no top-row letter. The lower rows take the letters the top row left behind, in alphabetical order: row 2 runs B to P, row 6 runs Q to Z and closes with the full stop at 68 and the figure shift at 69. Change the top row or the straddles in the tool — the grid, the codes and the note all follow.
Reading a stream off the board
Example 1 — MEET AT 6 PM on the loaded board
Letter by letter: M is row 2, column 8 → 28; E → 0; E → 0; T → 1; A → 3; T → 1; then the figure: shift 69, the figure 6 sent as first-straddle-plus-figure — 26 — and the shift again to close, 69; P is row 2's last cell → 29; M → 28; and the final period is the cell at 68. The whole message is nineteen digits with no separators, and the decoder walks it without hesitation: every 2 or 6 it meets simply means "take one more digit" (or, at 69, "figures follow").
Example 2 — a message that needs no second row
S, O and S all live in the top row — 8, 4, 8. Messages confined to the eight frequent letters encode at one digit per letter, the compression the design is chasing; a long English text averages close to 1.2 digits per letter on a well-built board, against the flat 2 of a Polybius square.
A stage, not a system
Alone, the checkerboard is a monoalphabetic substitution in digits and falls the way substitutions fall — the single digits are the commonest letters by design, and frequency analysis walks in. Nobody serious used it alone: its purpose is to be the front end of a system, turning letters into a seamless digit stream that a second stage — VIC's additive key and transpositions — can then genuinely protect. Judged as a component, its real strength is structural: the prefix property means errors stay local (a garbled digit corrupts a letter or two, not the whole message), and the variable length destroys the letter-boundary information that block ciphers leak. The ACA keeps it in the repertoire in exactly that spirit — a construction to build on, and a lovely piece of engineering to learn.
- Security status: as a component, excellent; as a standalone cipher, a substitution and broken like one.
- What gives it away: the digit statistics — the eight single digits must be the eight commonest letters, a fingerprint no fill order can hide.
- The working order: frequency analysis on the digit stream, then digraph statistics on the two-digit codes.
The family
| Relative | How it differs | Solve it with |
|---|---|---|
| VIC cipher | This board plus a lagged key and double transposition — the full agent system | The VIC page |
| Polybius square | The flat ancestor: every letter two digits, no frequency weighting, no prefix property | The Polybius page |
| Tridigital | A 3×9 relative: digit ranks give each letter a unique three-digit read-off | The Tridigital page |
| ADFGX / ADFGVX | Checkerboard encodings designed to feed fractionating transposition instead of an additive stage | The ADFGX page |
The board in the hollow nickel
The checkerboard's cultural home is the VIC story: the hollowed-out nickel that carried Häyhänen's microfilmed messages, the Brooklyn park bench, the FBI's years of failure against a pencil-and-paper system — Kahn's retelling made the checkerboard the emblem of hand cryptography done properly. In the ACA it is a building block members are expected to know cold, and in puzzle design it turns up wherever a setter wants digits that mean letters without a key grid in sight. It is also, quietly, a computer-science lesson: a Huffman-style prefix code, built by spies, by hand, before Huffman published.
Work the board
Practice 1 — encode CALL AT 9 on the loaded board
C and L live in row 2 (codes 21 and 27); A, T in the top row; the 9 goes through the figure shift.
Reveal the answer
213272731692969 — C=21, A=3, L=27, L=27, A=3, T=1, then 69, 9, 69. Decode it back and the stream returns CALLAT9: the decoder knows 9 is a figure because the shift at 69 put it in figure mode.
Practice 2 — why can't a one-digit code start with 2 or 6?
Think about what the decoder could no longer decide.
Reveal the answer
The stream would stop parsing itself: meeting a 2, the decoder could not tell whether it was a complete letter (E) or the first half of a two-digit code (2 followed by a column digit). The straddle digits are reserved as prefixes precisely so the choice never arises — the board's two empty top cells are the invention, not a waste of space.
Frequently asked questions
What is a straddling checkerboard?
A 3×10 substitution grid that encodes eight frequent letters as single digits and everything else as two digits begun by one of two reserved "straddle" digits. Because no complete code starts ambiguously, the digit output needs no separators and parses unambiguously — which is why it was used as the first stage of serious hand systems like VIC.
How are numbers sent in a straddling checkerboard?
Period practice varied by service; the rule this tool uses is stated on the page: the board's last cell (69 on the loaded board) is a figure shift — a run of figures is written shift, then each figure as the first straddle digit plus the figure (6 becomes 26), then the shift again to close. Whatever rule a network chose, sender and receiver had to share it, because the bare board defines no digit handling at all.
Is the straddling checkerboard secure on its own?
No — alone it is a monoalphabetic substitution and yields to frequency analysis. Its historical role is as a component: it converts text to a seamless digit stream so that a second stage (an additive key, a transposition) can protect it. The VIC cipher, which used it that way, was never cryptanalysed.
Why ETAOINSH in the top row?
Those are the eight most frequent letters of ordinary English, in order — giving them the one-digit codes is what makes the encoding compress as it substitutes. A board built for another language, or for a particular traffic type, would weight its top row differently; the tool lets you set any eight letters there.