Question: Please create program In C++ **The cipher_freq.txt and corpus_freq.txt are files that already have so you can just make the program to run any file

Please create program In C++ **The cipher_freq.txt and corpus_freq.txt are files that already have so you can just make the program to run any file but that the extension of the file can be change. Other have create a program but it doesnt work and another one is something completely different.

Cipher cracker Please create a program called sol_cracker.ext, where ext denotes the file extension corresponding to your choice of programming language (.py, .c, .cpp, .c++, or .java). This program reads in three files: ciphertext.txt, cipher_freq.txt, and corpus_freq.txt. The output of this program should be a file called cracked.txt. It should be the result of replacing each charact of ciphertext.txt with a capital Roman letter or a space. The correspondnce is given by the files cipher_freq.txt and corpus_freq.txt. The character in row i of cipher_freq.txt should be replaced with the letter (or space) in row i of corpus_freq.txt. (Note that for 4 this to work, both cipher_freq.txt and corpus_freq.txt must be sorted by frequency.) The result will probably not be a perfect decrypt, but the output should be close enough to cleartext to repair the remaining problems manually.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!