This applet is programmed to illustrate the code-breaking process using the Vigenere encryption as the code. The Vigenere encryption is broken by comparing histograms of various frequencies until the correct guess is obtained. A wrong guess for the period p leads to relatively flat histograms. The code breaker in this case repeats the analysis with a new trial period.