Question
C++ Need Help Create a Monoalphabetic Substitution Cipher class that can encrypt and decrypt a message using Monoalphabetic Substitution Cipher: User can be prompted to
C++ Need Help
Create a Monoalphabetic Substitution Cipher class that can encrypt and decrypt a message using Monoalphabetic Substitution Cipher:
User can be prompted to input a key i. The key should be validated to make sure it is 26 characters and no repeated letters.
A key can be randomly generated
i. This key generation should use a C++11 engine
A plaintext entered at the console can be encrypted using a key that has been gathered
from the user or generated by the class
A ciphertext can be decrypted using a valid key
2. Create a driver file that:
1. Instantiate object of the class
2. Prompt the user for choice of inputting a key or having a key generated
1. If user chooses to enter a key, use your MASC object to validate the key
2. If user asks for a generated key, use your MASC object to create one
c. Gather string from user
d. Ask user for spacing
i. User should be able to choose to preserve word boundaries or to specify a certain uniform word length
e. Use your MASC object to encrypt the string with the key and then display the ciphertext
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