Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

image text in transcribed

\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 Z

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 19 21 2012 Proceedings Part 3 Lnai 7198

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284922, 978-3642284922

More Books

Students also viewed these Databases questions

Question

3. Evaluate a Web-based training site.

Answered: 1 week ago