1. Use a Vigenere cipher with a key of "Patton" to encrypt: "If everyone is thinking alike,
then somebody isn't thinking." Is this a good key? Why or why not?
2. Calculate the index of coincidence for the result.
1. Encrypting "If everyone is thinking alike, then somebody isn't thinking." using a Vigenere cipher with a key Patton gives "Xf xosenogx wf ihbgyvcg tewxt, taxb fdmxucqn ilg'h gwigdwav.".
This is a good key since the length of the key is relatively large.
2. The incidence of coincidence can be found by calculating the
following expression
where N is the length of the
text which is 49 in this case, n is the number of alphabets which
is 26 in this case and Fi is the number of appearances of the i th
alphabet.
This value comes to which is equal to .
Get Answers For Free
Most questions answered within 1 hours.