Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In cryptography, a Caesar cipher , also known as Caesar's cipher , the shift cipher , Caesar's code or Caesar shift , is one of

In cryptography, a Caesar cipher, also known as Caesar's cipher, the shift cipher, Caesar's code or Caesar shift, is one of the simplest and most widely known encryption techniques. It is a type of substitution cipher in which each letter in the plaintext is replaced by a letter some fixed number 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, and decrypt the cipher text to plaintext. You must not hard code the cipher text nor any shift values in your program. Test your program with a sample cipher text here (only the alphabetic letters are changed):

Projects/caesarcipher/cipher.txt ==> "

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). "

Submit the following:

1. Source code

2. A screen shot showing the execution of the program and the correct offset value

3. The plaintext file

Submit each file individually. Do not zip.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions