In: Computer Science
1.encode the following message 'I love New York in June how about you' first apply the vigenere cipher with the key 'june' then apply the permutation (3,2,4,0,1). You can do this with the functions below in 1 line of code.
2.Consider the plain text 'Mom please don't tell dad I crashed the car I'll get it fixed before he even knows'. Using the Vigenere cipher I get the following cipher text: ''PFUKPJAKXGFVJXYEDEGRLDGWAKAHUBCIHAJBZZTGKJTAMIZFZHGEXHUVPZIAEFDQFEN'. What key did I use?
3.How can frequency analysis of words and characters help an attacker crack substitution ciphers?
4.Similar to the previous problem, make a python dictionary that counts the number of times each letter occures in the the book below (meditations by marcus Arelious)