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.
Purple
Simulates PURPLE, the Japanese diplomatic machine of 1939–45, as the U.S. Army’s SIS rebuilt it: the sixes and twenties switches of the Navy’s manual R.I.P. 77 (1941), the day’s alphabet and key, with part 1 of the 14-part message of December 1941 and a Tokyo–Berlin message of 1942 to read. Breaks a message of some 1,000 letters, often of 600, from its ciphertext alone, by coincidences.
About this tool
History
The Japanese Foreign Ministry’s 97-shiki ōbun injiki carried its diplomatic traffic from 1939. The U.S. Army’s Signal Intelligence Service broke it in 1940 without ever seeing one, from messages in depth and known plaintext, and built an analog; Friedman’s report of October 1940 tells how. The Navy’s manual for its own copy, R.I.P. 77, prints the switches’ wiring. The fourteen parts of Japan’s note of 7 December 1941 were among the messages read in Washington; their decrypts are in the National Archives. No Japanese machine survives whole.
How it works
A plugboard sends six letters, set by the day’s alphabet, through the sixes switch and twenty through three twenties switches, each a stepping switch of 25 positions; the same plugging takes the output back to letters. The sixes switch steps every letter and one twenties switch with it: the fast, except at the sixes’ 25, when the middle steps, or at 24 with the middle at 25, when the slow does. The key gives the sixes’ start, the three switches’ starts and which is fast and which middle.
Without the key, the output plugboard only relabels letters, so a setting is scored letter by letter, each ciphertext letter by the lead whose outputs coincide most, with no plugboard to search. First the sixes’ start and letters, then all 93,750 settings of the twenties; for the best, the leads are climbed, a slow switch the coincidences cannot see tried at its 25 positions, and the alphabet polished by the language’s quadgrams.
How it was checked
Every entry of the four switch tables agrees with R.I.P. 77’s pages; R.I.P. 77’s two tables of the switches’ positions and the paper’s figures come out step for step. Part 1 of the 14-part message reads its first 216 letters exactly as Freeman, Sullivan and Weierud print them, and the Tokyo–Berlin message of 27 July 1942 shows their markers at group 41. From the ciphertext alone the search finds part 1’s and part 5’s keys and alphabets exactly.
Limits
The tables are the analog’s, in the SIS’s numbering of the switches; the Japanese numbered them the other way about. Japanese plaintext, in romaji, has no statistics here, so the search reads English and the other languages of the pills; a Japanese message is read with its key. Under 600 letters the right setting does not stand out; under 1,000, not always. The key books’ indicators and monthly additives are not offered.
- U.S. Navy, R.I.P. 77, Instructions for M-5 (Orange Diplomatic “B” Machine) (PURPLE), 1941–42
- W. F. Friedman, Preliminary Historical Report on the Solution of the “B” Machine (14 October 1940)
- W. Freeman, G. Sullivan and F. Weierud, “PURPLE Revealed: Simulation and Computer-aided Cryptanalysis of Angooki Taipu B”, Cryptologia 27(1), 2003
- The 14-part message, parts 1 and 5, NARA RG 457 NR 1815, transcribed by F. Weierud