Question: Using C + + The Caesar cipher, which shifts all letters by a fixed amount, is far too easy to crack. Here is a better
Using CThe Caesar cipher, which shifts all letters by a fixed amount, is far too easy to crack. Here is a better idea. As the key, dont use numbers but words. Suppose the key word is FEATHER. Then first remove duplicate letters, yielding FEATHR, and append the other letters of the alphabet in reverse order:
Now encrypt the letters as follows:
Write a program in Cthat encrypts or decrypts a file using this cipher. For example,
crypt d kFEATHER encrypt.txt output.txt
decrypts a file using the keyword FEATHER. It is an error not to supply a keyword.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
