Unveil

Code

Classical and machine ciphers, from Caesar’s shift and the ACA’s 62 types to Enigma and Lorenz, and text as notes: enciphered with a key, chained, many broken without one.

Grid Ciphers

Bifid, Trifid, ADFGVX/ADFGX, Hill, Nihilist and the straddling checkerboard, both ways, the first four also without the key: the square or cube by simulated annealing; ADFGVX’s columns by their pairs’ coincidence, as Lasry and others read the 1918 messages, or by Painvin’s cut of two messages that agree, as Childs recorded it; Hill’s matrix row by row (Bauer and Millward, 2007) or from a probable word.

Terms

History, how it works, how it was checked, limits

History

Félix Delastelle published the bifid in 1895 and with the trifid in his Traité élémentaire de cryptographie (1902): coordinates in a keyed square or cube, read across a period at a time. The German Army began ADFGX in March 1918 and added V in June; Georges Painvin read a day’s key by cutting two of its messages that said the same thing one against the other. Lester S. Hill’s cipher (1929) multiplies blocks of letters by a matrix mod 26.

How it works

Without the key, Bifid’s square and Trifid’s cube are found by simulated annealing on the chosen language’s quadgrams, the period known, their runs drawn: a line a restart, the best in gold over the noise. ADFGVX’s column order comes first, scored by how its pairs and neighbouring pairs coincide, which does not depend on the square; each width measured against the same search in shuffled symbols, then the square solved as a substitution, messages under one key together. Painvin’s cut takes two messages whose texts agree but for a shift: cut where their shared runs break, each piece of one recurs in the other a fixed number of columns on, which walks the columns into order. Hill’s inverse is found row by row, all 26ⁿ rows scored on letter frequencies; a probable word fixes the rows directly.

How it was checked

The tests encipher the Declaration of Independence and solve it: Hill 2 × 2 from 60 letters, 3 × 3 under Wikipedia’s example matrix GYBNQKURP from 120 and from a probable word of 14; Bifid at period 5 from 200; Trifid from 300; ADFGVX’s 8 columns among 6 to 10. Painvin’s cut gives Childs’s order for the pair of 1 June 1918 and Lasry’s key for the October pair. Bifid’s period follows Practical Cryptography’s example. Measured on Waite’s prose: Hill from about 30 letters (2 × 2) or 80 (3 × 3), Bifid 150, Trifid 250, ADFGVX up to 14 columns from 150 and 17 two times in three from 300.

The tests hold 100 checks of this tool; 6 rest on outside material:

  • A historical message The homophonic search’s run walked back (the Zodiac 408, one seeded start): at every step the key handed on, a letter a symbol, reads by the tab’s own rule a text of the fluency the search reported, and the last step is the key the start ended on
  • A print’s own example … its source line names both prints the Archive cites: Kahn for the key and the texts, Childs, p. 20, for the column order (the review of the mending)
  • A print’s own example 1 June 1918: CHI 106 and 108 cut against each other give 21 columns, the shift 2 and Childs’s order, alone
  • A print’s own example October 1918: RICHI 338 and 274, ending alike, give 18 columns and Lasry’s order or its mirror
  • A print’s own example Read in Childs’s order, CHI 106 and 108 agree but for the address
  • A print’s own example The archive’s replay of the pair gives Childs’s order

Every tool’s checks

Limits

The solvers read six languages; another needs the key. Bifid and Trifid need the period. The long keys of 1918, 15 to 22 columns, need several messages under one key, the radiogram’s 62 letters cannot be read alone, and three of 1 June’s messages are too little text for the square. A square found may be a reordering of the one used. Until October 2026 Trifid dropped the cube’s + when deciphering.