Question: Write a program that can both encrypt and decrypt text using the Vigen re cipher Requirements Your program will be required to both encrypt and
Write a program that can both encrypt and decrypt text using the Vigenre cipher
Requirements
Your program will be required to both encrypt and decrypt ciphertext. The mode is specified by a program argument flag, e for encrypt mode, and d for decrypt mode.
Your program should work for both upper and lowercase plaintextciphertextkeys even if the key and plaintextciphertext do not have the same case as eachother.
Your program should also have another option for grouping output characters together. This can be specified by the g flag. What this will do is strip the ciphertext or plaintext of any nonalphabetic characters and group the output into spaceseparated groups consisting of uppercase characters.
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
