Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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