Secret codes

The ADFGVX cipher

Date: 1918Place: Paris (France)Who?: Fritz Nebel; broken by Georges Painvin

Only six letters to write everything, and a Frenchman who wore himself out

Transposition ciphers
AANA1C3HDD8TB2OMFFE5WRPDGG4F6G7IVV9JKLQSXXUVXYZ0A → AD · T → DD
Illustration drawn for the site

In brief

In spring 1918, the German army adopted a formidable cipher created by Fritz Nebel: each letter is first replaced by two letters out of A, D, F, G, V, X, then the whole lot is mixed by a transposition. The French lieutenant Georges Painvin broke it in June 1918, just as a major offensive was under way.

The story

The letters A, D, F, G, V and X were chosen because they are very easy to tell apart in Morse code, which reduces radio transmission errors. The 26 letters and 10 digits are arranged in a 6 by 6 square whose rows and columns carry these six names. Each letter becomes two symbols, then the result is written under a keyword and the columns are copied out in the alphabetical order of that word.

Georges Painvin, a teacher and fine cellist turned codebreaker, worked day and night on intercepted messages. On 2 June 1918, he decrypted a telegram announcing an attack near Compiègne: “Hurry the supply of ammunition. Do it even by day if not seen.” The French army prepared and the German offensive was stopped. Painvin is said to have lost about fifteen kilos during those weeks of effort.

Example

With the square, A = AD, T = FG… then the columns are rearranged according to a keyword.

Did you know?

The ADFGVX cipher combines two steps: a substitution then a transposition. This is called “superencryption”.

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.

In the same family: Transposition ciphers