ADFGVX cipher
ADFGVX turns each letter into a pair of the letters A, D, F, G, V and X, then shuffles the result by columns. It was the German army's field cipher in the last months of the First World War.
A little history
Colonel Fritz Nebel designed the cipher, and the German army brought it into use in the spring of 1918, ahead of its great offensive on the Western Front. The letters A, D, F, G, V and X were chosen because they sound very different in Morse code, so radio operators were less likely to mix them up. The French cryptanalyst Georges Painvin broke a key in June 1918 after days of exhausting work, and the message he decrypted helped the French anticipate an attack.
How it works
- Substitute. Find each letter in a 6 × 6 square whose rows and columns are labelled A D F G V X, and write down its row and column letters.
- Transpose. Write the result in rows under the columns of a key, then send the columns in a secret order.
SPIESGA FG DF AV GAGF AA FV GG DAAA DA GF GG FVSplitting each letter in two and then shuffling the halves is what made ADFGVX strong: the two halves of a letter end up far apart.
How to crack it
Painvin's attack relied on several messages sent with the same key. Messages that started or ended alike revealed how the columns had been arranged; once the columns were back in order, the pairs could be treated as a substitution cipher and solved by counting. Without lots of messages, ADFGVX is very hard to break by hand.
ADFGVX in Cyrune
Cyrune keeps the 6 × 6 square public, so only the column order is secret. Tap the columns in the order you think they were written. Each pair of signals is one letter, and the third letter straddles both rows, so a wrong order quickly shows up as digits or nonsense.
Related ciphers
- Polybius square ★★★★☆
- Rail fence ★★☆☆☆
- Run-on Morse ★★★☆☆