The program is very sloppy, but i know whats going on with it, anyway.. this is my first post so i dont know what all i need to do, like if i need to paste my code in here or whatever. But im making a vigenere decypher, that figures out the keylength and key. So far ive shifted the cipher, our teacher want us to use chi-squared, but if we cant figure out how to use it, to use another way. Anyway i couldnt figure out how to use chi squared or dot product rule. I dont want the program wrote for me just help on it. Thanks

edit:: i gues i should have posted my question in here. Anyway my question is, is if anyone can help me on figuring out how to use chi squared of on the dot product rule