Question
Analyzing Caesar Cipher Let p 0 , p 1 , . . . , p 25 denote the frequencies of the English alphabets A, B,
Analyzing Caesar Cipher
Let p0, p1, . . . , p25 denote the frequencies of the English alphabets A, B, ..., Z, respectively (the probabilities of occurrence). The following table shows each pi value:
\Write a java program that automates a brute-force key search attack using the above Mutual Index of Coincidence to find the right key for a ciphertext encrypted by a Caesar cipher. The program should be a command-line program that can take in a ciphertext txt file as an input and display MIC values for each key, the right key, and the decrypted plaintext.
character A B D E probability of occurrence Po = .082 P1 = .015 P2 = .028 P3 = .043 P4 = .127 P5 = .022 P6 = .020 P = .061 P8 = .070 po = .002 P10 = .008 P11 = .040 P12 = .024 N O Q R S T G UWLUI-YE P13 = .067 P14 = .075 P15 = .019 P16 = .001 P17 = .060 P18 = .063 P19 = .091 P20 = .028 P2i = .010 P22 = .023 P23 = .001 P24 = .020 P25 = .001 K L M Y Z character A B D E probability of occurrence Po = .082 P1 = .015 P2 = .028 P3 = .043 P4 = .127 P5 = .022 P6 = .020 P = .061 P8 = .070 po = .002 P10 = .008 P11 = .040 P12 = .024 N O Q R S T G UWLUI-YE P13 = .067 P14 = .075 P15 = .019 P16 = .001 P17 = .060 P18 = .063 P19 = .091 P20 = .028 P2i = .010 P22 = .023 P23 = .001 P24 = .020 P25 = .001 K L M Y ZStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started