Link to home
Start Free TrialLog in
Avatar of KenTan85
KenTan85

asked on

Breaking vigenere cipher

I want to write a program to break vigenere cipher. I understand the logic how it is encrypted and decrypted. I want to find the key. By using IC and Kasiski method, I am able to find the key length. But after that how do I programmically find the key? I just need to know what is the logic or math formula to do it... Any clues?
Avatar of Infinity08
Infinity08
Flag of Belgium image

The idea is that you perform a frequency analysis for each of the letters of the keyword. So, if you have determined how long the key is, you can identify each letter of the key separately.

It's nicely described here :

        http://www.simonsingh.net/The_Black_Chamber/vigenere_cracking.html

(specifically the cracking example)
ASKER CERTIFIED SOLUTION
Avatar of Enabbar Ocap
Enabbar Ocap
Flag of Italy image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial