Question: C++ program to encrypt a message by taking each letter in the message (in cryptography, these letters are called symbols because they can be letters
C++ program to encrypt a message by taking each
letter in the message (in cryptography, these letters are called symbols because they can be letters ( A-Z) , numbers( 0-9 ) ) and replacing it with a shifted letter.
Using letters are , If you shift the letter A by one space, you get the letter
B. If you shift the letter A by two spaces, you get the letter C. For example , this is a picture of some letters shifted over by three spaces.
1) Must use 2d vector array don't hardcode
2) key number must be between 1 and 36
3) Must have one function for populating the 2d vector array and encrypting the message.
4) Must have one function for populating the 2d vector array and perform the decrypting the message.
5) Must have one function to perform the validation ( encrypt , decrypt , exit and the key number )
Sample Run
Do you wish to encrypt or decrypt a message? decrypt Enter your message: Gur fxl nobir gur cbeg jnf gur pbybe bs gryrivfvba, gharq gb n qrnq punaary. Enter the key number (1-26) 13 Your translated text is: The sky above the port was the color of television, tuned to a dead channel.
If you do not decrypt with the correct key, the decrypted text will be garbage data:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
