Question: I need help to design a simple Vigenre Cipher C++ program. For this program, it should both encrypt and decrypt using this cipher using a
I need help to design a simple Vigenre Cipher C++ program.
For this program, it should both encrypt and decrypt using this cipher using a combination of letter to number mappings and modulo arithmetic. For example, we can map the letter 'a' to the number 0, 'b' to 1, . . . , 'z' to 25. For example, to encrypt a plaintext 't' when the corresponding key letter is 'b':
Convert 't' into a number (19)
Convert 'b' into a number (1).
Add the two numbers (mod 26): (19 + 1)%26.
Convert the result back into a letter (20 represents the letter 'u').
Example of working program for both encrypting and decrypting:


Do you wish to encrypt er decrypt? encrypt What is the key for this encryption? {all lowercase letters, no spaces] elephant Please type your plaintext message.r all on one line; when you are finishedIr hit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
