CS106A - Code In Place Final Project

by Abbey M


My program is a simple version of an encoding machine, like the Enigma. This program asks the user for a secret message and then encodes the text. It uses a dictionary to store the results, where each key is a character and the corresponding value is a unique identifier. This program will then ask the user whether or not they would like to decode the text. If so, it will reverse the cypher-text to display original message. Even if the text is the same in two submissions, the encrypted output will be unique. (So decoding only works if the user specifies it right after running the program.)