I am able to decrypt Vigenere ciphertext using the index of coincidence and chi-squared test.

However, out of interest, how do you go about attacking ciphertext that was encrypted using a mixed alphabet shifted 26 times?

Also, what about a ciphertext that has been encrypted with 26 random alphabets? (so each line in the tableau is random)

Googling seems to bring up the basic Vigenere, but either an example or a link to a more detailed resource would be good.


A general polyalphabetical cipher is just a combination of several general monoalphabetical ciphers, each applied on every $n$-th letter of the message.

So the first thing is to find out what $n$ is (i.e. the key length). For this we can use the index of coincidence just like for Vigenere.

Then we can split the message into $n$ parts (columns), and try to break each of it as an individual monoalphabetic cipher, starting with frequency analysis. (We'll have to correlate information from the individual columns to do bigram frequency analysis, too.)

  • $\begingroup$ This is what i expected, however if you have n splits of the ciphertexts which were encrypted with a general monoalphabetic cipher, carrying standard frequency analysis on each section seems like a right pain as even when you got the correct key it would have to be tested with the original ciphertext. Is there no simpler solution? as if you had a key lengt of 17 say, that would be 17 random pieces of ciphertext to decrypt, how would you ever know you got the right answer? unless you got a majority of them right? $\endgroup$ – Lunar Feb 13 '12 at 18:19
  • $\begingroup$ @Lunar: If you've got enough ciphertext, you can mostly guess each column of the tableau just by looking at single letter frequencies. The rest will then just be fine tuning. $\endgroup$ – Ilmari Karonen Feb 17 '12 at 17:08

Also what about a ciphertext that has been encrypted with 26 random alphabets? so each line > in the tableau is random.

If you mean that you use a repeating sequence of 26 random unique characters as the key, then you break it in much the same way as any other Vigenere cipher - n, in this case, is 26.

If you mean a random key at least as long as the message using 26 random characters, then you won't be able to differentiate successful and unsuccessful decryptions as the message is information-theoretically secure.


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.