Toolstia / ADFGVX cipher
ADFGVX cipher
The ADFGVX cipher was used by Germany in World War I. Each letter or digit becomes two letters from A, D, F, G, V and X, and the result is then scrambled with a keyword based transposition.
ADFGVX was used by the German army in 1918. Each letter or digit is replaced by two letters from A, D, F, G, V and X (its row and column in the square), then the letters are written under the keyword and the columns are read off in alphabetical order of the keyword letters. With the square NA1C3H8TB2OME5WRPD4F6G7I9J0KLQSUVXYZ and keyword PRIVACY, ATTACKAT1200AM becomes DGDDDAGDDGAFADDFDADVDVFAADVX.
How it works
- Choose encrypt or decrypt.
- Enter a transposition keyword and, if you like, a square keyword or a full 36 character square.
- Type the message and read the result.
Two steps
First a 6 by 6 square holding A to Z and 0 to 9 turns every character into a row letter and a column letter. Then those letters are written under the keyword and read off column by column in alphabetical order of the keyword.
The square
Give a keyword to build a keyed square, or paste all 36 characters of your own. The square is shown so you can check it.
Check the result
With the square NA1C3H8TB2OME5WRPD4F6G7I9J0KLQSUVXYZ and the keyword PRIVACY, ATTACKAT1200AM becomes DGDDDAGDDGAFADDFDADVDVFAADVX.
Why the letters
The letters A, D, F, G, V and X sound very different in Morse code, which reduced errors on the radio.
Questions
Is my message uploaded?
Everything happens in your browser, and nothing you enter is sent anywhere.
Is it still secure?
No. It is a historical cipher and was broken in 1918. Use it for puzzles and learning.
What happens to spaces?
Only letters and digits are enciphered. Spaces and punctuation are removed.