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.

Playfair

Enciphers and deciphers Playfair (a keyed 5×5 square, I and J sharing a cell; each pair by row, column or rectangle, highlighted) and Four-Square, and solves both without the key by simulated annealing (Playfair after Cowan 2008, from about 200 letters). Lyon Playfair recalled explaining “Wheatstone's newly-discovered symmetrical cipher” to Palmerston in January 1854; Delastelle set out the four-square in 1902.

Terms

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

History

Lyon Playfair recalled explaining “Wheatstone’s newly-discovered symmetrical cipher” to Palmerston in January 1854 (Reid’s memoir of him, 1899). Félix Delastelle set out the four-square in 1902. In August 1943 the coastwatcher Arthur Reginald Evans received in Playfair the loss of PT-109, commanded by John F. Kennedy, and five days later enciphered in it the report that islanders had found the survivors. Michael J. Cowan broke short Playfairs by simulated annealing in 2008.

How it works

The keyword, J as I, then the rest of the alphabet fill a 5 × 5 square. Enciphering cuts the letters into pairs, an X between doubled letters and after an odd last one, Q after an X: a pair in one row takes the letters to their right, in one column those below, otherwise its rectangle’s other corners. Deciphering leaves a doubled pair or a lone last letter as it stands, as some wartime operators sent them. Four-Square takes a pair from two plain squares to the opposite corners of two keyed ones. Both are drawn pair by pair, the pair ringed and the two it becomes in gold. The solver anneals squares after Cowan, swapping letters, rows or columns or flipping the square, on the chosen language’s quadgrams, as ACA Cipher Types does, from a different start on every core; Four-Square’s two keyed squares likewise. A reading counts only above what random letters of its length reach, and the run is drawn as it goes.

How it was checked

The Cipher Archive’s coastwatcher messages decrypt with the keys Kahn prints: PT-109’s under ROYAL NEW ZEALAND NAVY except COVE, read COCE because group 13 reached Evans as BYBWT, and the Gross Island report under PHYSICAL EXAMINATION. The solver reads 300 letters of the Declaration of Independence under LIBERTY from a random square in a seeded run, and refuses odd lengths and doubled pairs. Four-Square turns HELP ME OBI WAN KENOBI under EXAMPLE and KEYWORD into FYNFNEHWBXAFFOKHMD and back. The Playfair enciphers as the ACA’s does; a square shifted by rows or columns enciphers all 600 pairs alike. Every pair drawn, the PT-109 message’s 50 among them, is the pair the cipher gives.

The tests hold 82 checks of this tool; 2 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 historical message PT-109 decrypts (COVE garbled to COCE in the message as received)

Every tool’s checks

Limits

J is read as I; digits and punctuation are dropped. Deciphering leaves the fillers in: TAXXI comes back as TAXQXI. Playfair’s search needs an even length without doubled pairs, may fail under about 200 letters, and finds a square that deciphers alike, perhaps a shifted one, never the keyword.