Processing math: 100%

The Book of Gehn

I found 1 post.


Kasiski Test - Part I

Tags: cryptography, cryptonita, vigenere, kasiski

October 11, 2020

The tricky part of breaking the Vigenere cipher consists in finding the length of the key.

We discussed this in the breaking Vigenere post.

In that occasion we used the Hamming distance and the Index of Coincidence.

But another method existed much before the development of the IC around 1922.

In 1863, Kasiski published a method to guess the length of the secret key, method that we know today as the Kasiski test.

Let’s explore a O(\vert s \vert) solution with a worst case of O(\vert s \vert^2)

- Martin Di Paola