Question: Given an arbitrary cipher text file, you need to write a C++ program to find the value of the shift, and decrypt the cipher text
Given an arbitrary cipher text file, you need to write a C++ program to find the value of the shift, and decrypt the cipher text to plaintext. You must NOT hard code the plain text or the cipher text in your program. Your program should try various shift values, and compare with these common English words to determine whether the shift value is correct. Test your program with a sample cipher text here (only the alphabetic letters are changed). No text file are used. The output will ask the user to input the text.
Sample cipher text:
Ty ncjaezrclasj, pyncjaetzy td esp acznpdd zq eclydqzcxtyr tyqzcxletzy (cpqpccpo ez ld awltyepie) fdtyr ly lwrzctesx (nlwwpo ntaspc) ez xlvp te fycplolmwp ez lyjzyp pinpae eszdp azddpddtyr dapntlw vyzhwporp, fdflwwj cpqpccpo ez ld l vpj. Esp cpdfwe zq esp acznpdd td pyncjaepo tyqzcxletzy (ty ncjaezrclasj, cpqpccpo ez ld ntaspcepie).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
