In cryptography, a Caesar cipher, also known asCaesar's cipher, the shiftcipher, Caesar's code or Caesarshift, is one of the simplest and most widely knownencryption techniques. It is a type of substitution cipher in whicheach letter in the plaintext is replaced by a letter some fixednumber of positions down the alphabet.
Given an arbitrary cipher text file, you need to write a C++program to find out the value of the shift going down the alphabetand decrypt the cipher text to plaintext. You must not hard codethe cipher text nor any shift values in your program. Test yourprogram with the sample cipher text below (only the alphabeticletters are changed):
Ty ncjaezrclasj, pyncjaetzy td esp acznpdd zq eclydqzcxtyrtyqzcxletzy (cpqpccpo ez ld awltyepie) fdtyr ly lwrzctesx (nlwwpontaspc) ez xlvp te fycplolmwp ez lyjzyp pinpae eszdp azddpddtyrdapntlw vyzhwporp, fdflwwj cpqpccpo ez ld l vpj. Esp cpdfwe zq espacznpdd td pyncjaepo tyqzcxletzy (ty ncjaezrclasj, cpqpccpo ez ldntaspcepie).