Question: C++ Assignment Specifications Decryption and encryption is a very useful activity to hide messages or data. Encryption is utilized to store passwords, store user information
Assignment Specifications Decryption and encryption is a very useful activity to hide messages or data. Encryption is utilized to store passwords, store user information and in many other means when the sender does not want the message to be easily readable to anyone other than the intended reader. Your Assignment You must write a program that can both decrypt and encrypt a single word that is entered by the user. The initial choice of encryption and decryption is left up to the user. Additionally, the user will enter a value to be utilized when determining how to translate the character. Alphabetic Positions Positions start at zero. If the letter is 'a' then its position in the alphabet is e and if the letter is c the position is 2 and so on through 'z' Algorithm . Acquire the method to perform (encryption or decryption). o Check whether the method specified is valid o If keyword default is entered, utilize the default map. o Validate the size of the map (26 characters) o Validate whether the word can be encrypted o Validate whether the word can be decrypted Acquire the translation map a default map: "zyxwvutsrqponmlkjihgfedcba" . Acquire the word to encrypt or decrypt, validate depending on method All characters in word must be lowercase letters All characters in word exist in map
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
