ADFGVX Cipher

A cipher used by the Germans in World War I. The algorithm first performs a monoalphabetic substitution on the plaintext using a 6x6 grid randomly populated with a-z and 0-9. Rows and columns are labeled with the letters A, D, F, G, V, X (hence the name). A plaintext symbol is enciphered as its pair of row and column labels. The second stage of the algorithm uses a keyword to perform a transposition cipher on the result from the first stage. Note that the message may be padded at the end. In practice, the final result would be transmitted using Morse code. The letters A, D, F, G, V, and X were chosen due to their distinct representations in Morse code, making it easier to transmit and read messages.

Learn more about this algorithm

Input