A diagnosis worksheet

Diagnosing a Machine from Evidence

The US Army codebreakers who reconstructed Japan’s Purple machine never saw one. This worksheet practises one step of that kind of reasoning on synthetic messages: align two messages that share a key, build what each key position must do, and test the result on a message you have not used.

Synthetic worksheet. The messages, the cipher and its permutations are invented for teaching. This is not the Purple machine and not a reconstruction of the historical attack. It isolates one diagnostic step.

The idea

Messages enciphered with the same key are said to be in depth. If the same plaintext letter stands at the same key position in two such messages, it must become the same ciphertext letter there. Matched plaintext and ciphertext therefore fill in part of each key position’s substitution, and every extra message in depth fills in more. Two messages can also be in depth with an offset: one starts later in the same key (Stamp and Low, Applied Cryptanalysis).

Finding the right offset is a hypothesis. It can be wrong in two ways: it can make one key position do two incompatible things, or it can simply predict nothing that anyone has checked. The test is a message that played no part in forming the hypothesis.

What you are given, and what is assumed

Messages (synthetic)
MessagePlaintextCiphertext
A (supplied, starts at 0)CONVOYLEAVESATDUSKLXPZGNELRSWRPCLPWB
B (plaintext assumed, start unknown)WEATHERCLEARINNORTHJKBAKLKZPDPDHOATCLA
C (starts at 2)held outIKBYPDRVDJJM

The worksheet

Pairs at each key position under your alignment
Key positionPlaintext → ciphertextCheck

Choose an offset for message B, align it, then test it on message C.

Your record

No alignment tested yet. Each test is kept, including those that fail.

    A supported alignment still leaves most of message C unread: two messages fill in only a few letters of each key position. That is the point at which real work needed more traffic, more cribs and more checks.

    A team, and a pattern followed by checks

    The Purple reconstruction was the work of the Army’s Signal Intelligence Service as a team, not of one person. Frank Rowlett supervised the effort (Mundy, Code Girls). His own account describes statistical tests confirming which messages shared a key, and the day Genevieve Grotjan found the first instance of the relationship the team had been searching for. The section gathered at her desk and William Friedman came in to see; Rowlett then worked through the results with Robert Ferner and Albert Small, and Leo Rosen had earlier described how telephone stepping switches worked (Rowlett, The Story of Magic). Grotjan had joined as a junior cryptanalyst in 1939 (Mundy).

    The worksheet mirrors only the shape of that progression: a promising relationship, then corroboration from material that did not suggest it, then a partial result that still leaves work to do. Accounts give different dates for Grotjan’s discovery, so this page does not assert one. See the Purple exhibit for the machine and its history.

    Sources

    The messages, permutations and worksheet are original to this page. Books are cited by title; no copy of any book is linked.