As part of an assignment, I have been given a cipher text of


with the following description,

A zebra could unlock this German, 1st World War cipher.

At first, I thought that the description could contain a playfair keyword that could be used to crack the ciphertext. However, the ciphertext is 25 characters long - shouldn't the plaintext be padded before encryption to create en even number of characters? Also, I don't see how playfair encryption could yield repeating characters in a pair like "FF" or "XX".

I was hoping someone could validate my reasoning behind this and maybe point me in the right direction (in terms of determining which encryption method has been used).

  • $\begingroup$ Welcome to Crypto.SE! First up, your question is a bit borderlining as "Requests for analyzing ciphertext or reviewing full cryptographic designs are off-topic, ...." but that's just an aside and (from my point of view) not really applicable in this case. Anyway, the answers to the following might help - How to attack a classical cipher using known partial plaintext? $\endgroup$ – e-sushi Nov 23 '16 at 12:53
  • 1
    $\begingroup$ A zebra has black and white lines. In the Netherlands a "zebrapad" is a pedestrian crossing (due to the white and black lines). People tend to walk only on the white lines. "Zebra" therefore often means that you have to skip each other element or character. $\endgroup$ – Maarten Bodewes Nov 23 '16 at 13:04
  • $\begingroup$ And as far as I know, the playfair cipher was exclusively used by the British and not the Germans... $\endgroup$ – SEJPM Nov 23 '16 at 13:19
  • 1
    $\begingroup$ You want to look at the ADFGVX cipher, a German, 1st World War cipher. $\endgroup$ – fgrieu Nov 23 '16 at 13:25
  • $\begingroup$ @fgrieu It looks like this might be the right answer. The cipher text clearly shows its characteristics. Too bad we didn't actually learn about this in class. $\endgroup$ – MPol Nov 23 '16 at 13:28

As it turns out, the encryption method used was "ADFGX", an earlier version of the proposed "ADFGVX" method suggested in a comment by fgrieu:

You want to look at the ADFGVX cipher, a German, 1st World War cipher.

This made me search and find ADFGX - a German cipher based on a combination of the Polybius checkerboard and ciphers using key words. It was known as ADFGX, because those were the only letters used in the cipher. The Germans chose these letters because their Morse code equivalents are difficult to confuse, reducing the chance of errors.

This answers my question and shows that even a little hint can be really helpful.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.