Double transposition
Shuffling the columns twice: the pocket cipher of secret agents

Public domain — Wikimedia Commons
In brief
During the Second World War, many Allied secret agents and resistance fighters encrypted their messages by hand with double transposition: you write the text under a keyword, copy out the columns in an order given by that word, then start again with a second keyword. No machine, just pencil and paper.
The story
Agents parachuted into France by the British SOE learned a poem by heart that gave them their keywords. The SOE’s head of codes, Leo Marks, realised that famous poems could be guessed by the Germans, so he wrote original poems for each agent, such as “The Life That I Have”, given in 1944 to the agent Violette Szabo.
Double transposition is strong if the messages are long and carefully encrypted, but a single mistake makes everything unreadable. Leo Marks set up a team to decipher agents’ botched messages so they did not have to retransmit, which would have helped the Germans locate their radio. Ciphers of this kind were still used by spies during the Cold War.
Example
Keyword CAT: write the message in rows of 3 letters under C-A-T, then copy out the columns in the order A, C, T. Then do it again with another word.
Did you know?
The longer the keyword, the stronger the mixing. Enemy codebreakers looked for two messages of the same length encrypted with the same key so they could compare them.
Sources: D. Kahn, The Codebreakers, 1967 (rev. ed. 1996); S. Singh, The Code Book, 1999; F. L. Bauer, Decrypted Secrets, 4th ed., 2007; C. P. Bauer, Secret History: The Story of Cryptology, 2nd ed., 2021; texts written for this site.
The Spartan scytale
The turning grille