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