adfgvx - ADFGVX cipher tool
Adfgvx is an implementation of the “ADFGVX” cipher invented by Fritz
Nebel in 1918 and used by the Germans in the last months of World War I.
WARNING: Do NOT use this program to encrypt sensitive informations! To
quote Bruce Schneier: “There are two kinds of cryptography in this
world: cryptography that will stop your kid sister from reading your
files, and cryptography that will stop major governments from reading
your files.” (Bruce Schneier, “Applied Cryptography: Protocols,
Algorithms, and Source Code in C”). The ADFGVX cipher may prevent your
kid sister from reading your files, but that’s about the best it can do
nowadays. Even by 1918 standards, the cipher was not robust enough to
prevent French cryptanalysts to break it. I only wrote this program
because it was something fun to do.
This implementation of ADFGVX can encrypt either a 36 letters plaintext
alphabet into a 6 letters ciphertext alphabet (like the original ADFGVX
cipher), or a 64 letters plaintext alphabet into a 8 letters ciphertext
alphabet (this second mode of operation notably allows to encrypt a
Adfgvx is distributed under the terms of the GNU General Public License,
version 3 or higher. The full license is included in the COPYING file of
the source distribution.
Homepage and contact
The repository containing the latest source code is available at
To contact the author, use the following address:
Damien Goutte-Gattat <firstname.lastname@example.org>