CPE 645 / CS 685
Applied Cryptography

Kasiski Examination

Repeated n-grams, the distances between them, and a vote on their factors scored as excess over chance.

CryptanalysisPeriod findingdemo
Objectives
  • Collect repeat distances from a polyalphabetic ciphertext and factor them.

  • Explain why the plain gcd of every distance fails on a real message.

  • Score factor votes against chance and recover the key length.


Static site. Every demo computes in your browser, and nothing you type is sent anywhere.