Please create program In C++ **The cipher_freq.txt and corpus_freq.txt are files
ID: 3592769 • Letter: P
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 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.
Explanation / Answer
#include int _tmain(int argc, _TCHAR* argv[]) { std::ofstream F("con.txt", std::ios::out); FRelated Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.