|
|
Suggested experiment 1
- Enter english text in the INPUT TEXT box.
- Enter the key (two numbers from 0 to 25) in the ALPHA and BETA boxes.
Note that ALPHA must be relatively prime to 26 (it must be odd, and not 13).
- Click ENCRYPT to encrypt the text (without spaces) and see the ciphertext.
- Change the key and click DECRYPT to see the "plaintext" resulting from decrypting with an incorrect key.
Suggested experiment 2
- Click SECRET to generate ciphertext from a secret english phrase using a random key.
- Click the FREQUENCY tab
- Find the highest point on the graph.
This shows which key will decrypt the ciphertext into the most english-like plaintext
(i.e. mazimizes the dot product of the probability vectors).
- Slide the slider until the red bar is on the highest
point. The lower ALPHA and BETA boxes now contain that key.
- Click SET to copy the lower ALPHA and BETA boxes into the upper boxes.
- Click DECRYPT to try decrypting with that key.
- If this is the right key, the INPUT TEXT box will contain actual english text with the spaces removed.
- If that failed, try again using the second-highest point on the graph.
- Click on SECRET again and repeat to see a different text encrypted with a different key.
|