Skip to content
Cipherloom密码织机

CIPHER/POLYALPHABETIC/ADFGVX FIELD CIPHER

ADFGVX Field Cipher

Published 24 Oct 2026 · · 10 min read

ADFGVX is what happens when a general staff takes every good idea in this collection and stacks them. A six-by-six square carries the alphabet and the ten digits. Every character becomes a pair of letters drawn from just six symbols, chosen because they are hard to confuse in Morse. Then the whole thing is transposed with a columnar key. It was used by the German army on the Western Front in 1918 and it took the best French cryptanalyst of the war to break it.

Era
Modern
Type
Polyalphabetic
Key space
36! square x columnar key
Level
Specialist
Cipher loom plate: ADFGVX Field Cipher
plate adfgvx-cipher · Polyalphabetic

IPhenomenon

The name is the symbol set: A, D, F, G, V, X. Six symbols give 36 combinations, and 36 cells hold 26 letters plus 10 digits with nothing left over.

ADFGVX
ALO1740
D9M3Z8Q
FK5CW6P
GE2BYRT
VSAUHIJ
XFGDNVX

A plaintext character becomes two symbols: the row letter first, then the column letter. The message LOOM1 produces AA AD AD DD AF.

Two things are happening at once. The fractionation has reduced a 36-symbol alphabet to a 6-symbol one, which is exactly what a signal officer wants — six distinguishable Morse patterns instead of thirty-six. And the substitution has removed the letter frequencies, so the columnar transposition that follows has no frequencies to exploit in the first place.

The bench note the square is scrambled from a keyword and the transposition uses a second keyword, which is why the tool's key field takes two words.

IIKey space

Two independent layers, and both must be defeated.

The square is a permutation of 36 symbols, built from a keyword. The transposition is a columnar cipher with its own keyword. If the attacker recovers the square but not the transposition, they still have the digit-pair stream; if they recover the transposition but not the square, they have a monoalphabetic substitution over 36 symbols, which is not trivial but is within reach of a patient analyst with enough traffic.

The composition is the point. ADFGVX's strength does not come from either layer — it comes from the fact that breaking one gives the attacker nothing until they break the other.

That is the general shape of modern cryptography, and ADFGVX is the first cipher in this collection to state it clearly. It is also why the cipher was breakable in practice: the French had enough intercepted traffic, and enough operator carelessness in the transposition keys, to attack both layers at once.

IIIEnciphering

  • Build the 6 x 6 square from the first keyword, filling with the alphabet followed by the digits 0-9.
  • Label the rows and columns with the six symbols A, D, F, G, V, X.
  • Write the plaintext, converting letters to capitals and keeping digits as they are.
  • Replace each character with the row letter followed by the column letter. Two symbols per character.
  • Choose the transposition keyword and number its letters in alphabetical order.
  • Write the symbol stream into rows under that keyword, then read the columns in rank order.
  • Transmit the result. The square and the transposition keyword are both required to read it, and they are distributed separately.

IVDeciphering

  • Recover the transposition keyword first, or the position of the column boundaries. Without it, the symbol stream is in the wrong order and nothing else can be attempted.
  • Undo the transposition: write the stream into columns by rank and read across the rows.
  • Confirm that the resulting stream has even length and that every symbol is one of A, D, F, G, V, X. An odd length means a transcription error, not a decryption error.
  • Re-pair the symbols and look up each pair in the square to recover the character.
  • Recover the square from captured material or from cryptanalysis of the recovered substitution.
  • Expect the whole process to take hours under field conditions, and expect the operators on the other side to know that — which is exactly why ADFGVX keys were supposed to change daily.

VWeakness

Operator discipline decided the war. The transposition key was supposed to change daily. Operators reused keys, or chose keys that were alphabetically adjacent to the previous day's, and each lapse handed the analyst a fresh crib.

The symbol stream is uniform, which is itself a signal. A perfectly flat distribution of six symbols is not what natural language produces, so any analyst who sees one knows immediately that fractionation is in use and that the underlying plaintext frequencies have been removed by substitution rather than by transposition.

The transposition preserves the pair structure. Because the pairs ADFGVX are the atoms of the transposed text, a single mis-transcribed symbol shifts the pairing of everything after it, and the resulting plaintext degrades into garbage from that point on.

Time pressure destroyed it. In the spring of 1918 the Germans were transmitting enormous volumes under a key that changed daily; the French had to break a new key every twenty-four hours, and Painvin did it repeatedly under a deadline that killed him.

A captured square is not enough. The two-layer design meant that even a partial compromise did not immediately produce plaintext, which is a genuine strength and is why ADFGVX held out as long as it did.

VIPractice

Ciphertext

AFVX ADDX AADG DFAG ADGX

Hint: Keyword LOOM builds the square; the second keyword BRASS drives the columnar step. Both are needed.

Reveal the answer

Plaintext

LOOMKEY

This entry is historical and educational. It is not guidance for circumventing the security of any system in use today, and it is not professional advice.

·History note

Germany introduced the ADFGX cipher in March 1918 and extended it to ADFGVX in June of the same year when the six-by-six square replaced the five-by-five, adding the digits. Intercepted traffic was passed to the French Section du Chiffre, where Georges Painvin worked on it. He broke the first messages within days by exploiting the operators' habit of using repeated keys, and on 1 June 1918 he read a message ordering the transfer of artillery in preparation for the German attack at Compiegne. The German offensive went ahead without the advantage of surprise, and the French counter-attack at Villers-Cotterets on 18 July used the same intelligence. The effort cost Painvin his health; he lost a great deal of weight during the spring of 1918 and never fully recovered.

·Further reading

ADFGVX is a performance-review cipher: substitution, fractionation, and transposition, composed in the correct order, with a small symbol set chosen for the transmission channel. It is a complete answer to the design question, and its failure was entirely operational.

That distinction — cryptographic strength against operational strength — is the most useful thing this entry teaches. ADFGVX was not broken by mathematics. It was broken by cryptanalysis plus a key-distribution schedule that human beings could not maintain.

The same question is still asked today, in the same terms: not 'is this algorithm strong' but 'can the people operating it keep it strong on the worst day of the year'.

Next on the loom: vernam-otp — the cipher with a proof of perfect secrecy, and the operational problem that makes it almost impossible to use.

+Weave into