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:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started