Kasiski and Splitter Applet

This applet will estimate the length of a keyword for a Vigenere encrypted message and also can be used to split the text into slices (those characters encryptesd with the same keyword character.

To run a Kasiski attack

  1. Enter a String in the message Text Area.
  2. Press the "Kasiski attack" button.

  3. The program will find all repeated trigrams in the message; list their positions and calulate the diatances between their occurences.

To slice text into pieces

  1. Enter your String in the Text Area.
  2. Fill in a key length value.
  3. Press the "Split Cipher text" button.

  4. The applet will return the slices of your text, i.e. slice 0 will be characters 0, k, 2k, 3k, 4k, ...; slice 1 will be characters 1, k + 1, 2k + 1, 3k + 1, ...; slice 2 will be characters 2, k + 2, 2k + 2, 3k + 2, ...
Here is the souce code for this applet, KasiskiApplet.java, the java application source code and BreezyGUI information.