Break a World War I ADFGVX Cipher - A Cipher Germans Believed was Unbreakable

  Рет қаралды 4,117

Cryptography for Everybody

Cryptography for Everybody

Күн бұрын

#cryptology, #cryptography, #cryptanalysis
This short video shows how to create and break ADFGX and ADFGVX ciphers.
The ADFG(V)X cipher was invented in 1918 during WWI by German officer Fritz Nebel and also broken in 1918 by French officer Georges Painvin. These ciphers were one of the first fractionating ciphers based on substitution and transposition (see our other videos for introductions on substitution and transposition ciphers).
If you are further interested in the algorithmic background of breaking the ADFGVX and in its historic background, we recommend to read our paper about breaking ADFGVX messages from the Easter Front of Warld War I (see [1]).
You may download the latest version of CrypTool 2 from here: www.cryptool.o...
[1] Lasry, G., Niebel, I., Kopal, N., & Wacker, A. (2017). Deciphering ADFGVX messages from the Eastern Front of World War I. Cryptologia, 41(2), 101-136.

Пікірлер: 24
@OliverdeClisson
@OliverdeClisson 4 жыл бұрын
This French Guy Georges Painvin was a war hero. The Code Breaking of the German Codes, prevented the german offensive 1918 from breaking through into Paris.
@CryptographyForEverybody
@CryptographyForEverybody 4 жыл бұрын
Hello Heinrich IV, You probably refer to the decryption of "Le radiogramme de la victoire". It led to the counter-offensive from General Mangin, prepared in part thanks to the information obtained by the decrypion done by Painvin. Greetings, Nils See (translation to English) of this french website: translate.google.com/translate?sl=fr&tl=en&u=http%3A%2F%2Fwww.bibmath.net%2Fcrypto%2Findex.php%3Faction%3Daffiche%26quoi%3Ddebvingt%2Fradiogramme
@OliverdeClisson
@OliverdeClisson 4 жыл бұрын
@@CryptographyForEverybody yeah
@OliverdeClisson
@OliverdeClisson 4 жыл бұрын
@@CryptographyForEverybody on german wikipedia i read the stuff about George Painvin.
@OliverdeClisson
@OliverdeClisson 4 жыл бұрын
@@CryptographyForEverybody but this george painvin is extremly underrated. I cant find even a single video or article about him on yt and google.
@CryptographyForEverybody
@CryptographyForEverybody 2 жыл бұрын
There is a small error in the Polybius square used. The letter "N" appears twice, the "W" does not appear at all. To fix this error, one "N" must be replaced by the missing "W" 🙂 . A viewer pointed this out to me, thank you!
@veehope2702
@veehope2702 2 жыл бұрын
Interesting. I wonder what is the minimum cipher length need for a decryption? I look forward to playing with this software tool.
@CryptographyForEverybody
@CryptographyForEverybody Жыл бұрын
Hi Vee Hope, You can compute the "unicity distance" -- a statistical value which tells you the minimum length of ciphertext needed to have a unique solution (when searching it with brute-force). I also have a video about unicity distance on the channel :-). Or you could just test it with a solver, e.g. with CrypTool 2. 1) Unicity distance: To compute the unicity distance, you have to first compute the keyspace size: this is the number of possible polybius squares (= 25!) multiplied with the possible transpositions (I assume transposition key length is 17, so its 17!). So we have 25! * 17! which is about 2^132. The unicity distance is U=entropy_keyspace / redundancy_language = log_2(2^132) / 3.2 (for English) which is 132 / 3.2 which is about 41.26. So we would need about 42 letters of ciphertext to get a solution for an ADFGVX cipher with a transpsition of length 17. Since we have 2 letters per plaintext letter I assume we would need 84 letters of ADFGVX-encoded ciphertext... Of course, this is the absolut minimum. Probably, since the algorithms are not perfect, we would need more ciphertext. 2) With a solver: I did a quick test with CrypTool 2's ADFGVX analyzer template: I removed ciphertexts (messages) from the input and let CT2 break the remaining texts. I was able to successfully solve the ADFGVX ciphertexts having only 2 messages with a total of 336 ciphertext letters (= 168 plaintext letters). In that case, the ciphertexts were encrypted with a transposition key of length 15, so a little shorter than in the computation above in (1). So to answer your question: the theoritcal possible (about 42 plaintext letters) value is of course shorter than the actual ciphertext (about 168 plaintext letters) that we need with a solver. I hope that answers your question :-)
@12439524
@12439524 Жыл бұрын
Is it difficult to solve the adfgvx cipher with double transposition?
@CryptographyForEverybody
@CryptographyForEverybody Жыл бұрын
Hiho, Yes, it is much more difficult. To attack a double columnar transposition, you can use a divide&conquer attack and split the attack into two parts (second transposition and then the first transpositon). Same is with ADFGVX, you perform also a divide&conquer attack. Here, you first solve the transpostion and then the substitution. Now, having two transpositions and the substitution, you cannot perform a divide&conquer on this type of cipher since you have basically three ciphers. I hope you understand what I mean :-) The difficulty of attacking an ADFGVX with double columnar is comparable to attacking the GRANIT cipher (see my video on that cipher: kzbin.info/www/bejne/aYO4q3qBorh6lc0). Greetings, Nils
@napoleonnathan
@napoleonnathan 3 жыл бұрын
Error: Plaintext and cipher text length do not match
@CryptographyForEverybody
@CryptographyForEverybody 3 жыл бұрын
Hello Nathan Gallegos! Where did you see this/where did you get this ? Greetings, Nils
@napoleonnathan
@napoleonnathan 3 жыл бұрын
I figured it out, there was a space in my text
@GhirkoArt
@GhirkoArt 3 жыл бұрын
Nicely demonstrated. Thanks! I've been stuck with decrypting a code for ages now and this has made life so much easier.
@CryptographyForEverybody
@CryptographyForEverybody 3 жыл бұрын
Thank you! Always happy to hear when my videos actually help and interest viewers :-) Greetings, Nils
@oliholbourns7274
@oliholbourns7274 3 жыл бұрын
R u taking part in cipher challenge? 😆😆😆
@GhirkoArt
@GhirkoArt 3 жыл бұрын
@@oliholbourns7274 A cipher challenge, yeah lol. Still, even with this tool I've had no luck. I've started at a key length of two all the way through to 20 and nothing yet.
@oliholbourns7274
@oliholbourns7274 3 жыл бұрын
@@GhirkoArt yeah, i made 27 iterations on part 6B on the second key. I got the first key as RDF. Hope that helps. Any help would be great 👍. Thanks
@GhirkoArt
@GhirkoArt 3 жыл бұрын
@@oliholbourns7274 Unfortunately I'm not doing the same cipher as you there. Mine is part of a RP group I'm with (but really, they put a code infront of me. I don't care what it's for, I gots ta crack it). How I've been going about it is a mix of using the tool but also doing it manually, as I can assume the first 2 words, so I try every number combination then sub in that first phrase. That might help you, as that key is only 3 letters, it shouldn't take too long.
@bullse
@bullse 3 жыл бұрын
It won't work to break a ADFGX cypher. Or am i doing it wrong?
@CryptographyForEverybody
@CryptographyForEverybody 3 жыл бұрын
Hiho Andreas Mandoe, It does. You can change the mode of the analyzer to adfgx. How much ciphertext do you have? Greetings, Nils
@Mariano5869
@Mariano5869 4 жыл бұрын
I followed your steps, and I receive the message: "one of the messages contain invalid characters" what am I doing wrong?
@CryptographyForEverybody
@CryptographyForEverybody 4 жыл бұрын
Hello there! I assume that your ciphertext contains an invalid symbol. For decryption, the ciphertext only may contain the letters a,d,f,g,v,x. So, i assume it may contain any other symbols. Also, have a look if it contains any whitespaces, for example a space symbol or a line break. If you remove these, the message should be decryptable. Also, it should show you which letter/symbol is wrong. I tested it with a wrong letter ("K") and it shows: "Ciphertext contains invalid character: K" - if it shows something like "Ciphertext contains invalid character: " and you don't see anything after the colon it is a white space as mentioned above.
The GRANIT/160 Cipher Explained - A GDR Stasi Spy Cipher
25:28
Cryptography for Everybody
Рет қаралды 1,7 М.
The day of the sea 😂 #shorts by Leisi Crazy
00:22
Leisi Crazy
Рет қаралды 1,7 МЛН
Incredible: Teacher builds airplane to teach kids behavior! #shorts
00:32
Fabiosa Stories
Рет қаралды 10 МЛН
The German SZ42 Cipher Machine Explained
32:13
Cryptography for Everybody
Рет қаралды 2,1 М.
Cracking Enigma in 2021 - Computerphile
21:20
Computerphile
Рет қаралды 2,5 МЛН
Cryptanalysis of Vigenere cipher:  not just how, but why it works
15:33
Proof of Concept
Рет қаралды 32 М.
Secret Codes: A History of Cryptography (Part 1)
12:09
The Generalist Papers
Рет қаралды 79 М.
Diy Brass Dice and Dice Box - Etched Brass
17:43
Impact DIY
Рет қаралды 8 М.
Cryptography: Crash Course Computer Science #33
12:33
CrashCourse
Рет қаралды 837 М.
Break the Double Columnar Transposition Challenge (Doppelwürfel)
17:26
Cryptography for Everybody
Рет қаралды 2,9 М.
The Affine Cipher - A Mathematical Substitution Cipher
15:35
Cryptography for Everybody
Рет қаралды 1,2 М.
Exploiting the Tiltman Break - Computerphile
25:33
Computerphile
Рет қаралды 260 М.