The goal of this project is to decrypt the given ciphertext using a substitution cipher. To assist with this, the given input text is already shifted to fit the most common letter frequencies in the English dictionary.
This program follows a simple structure:
- The score of your current mapping is displayed.
- The current mapping of the letters is displayed.
- The state of the current ciphertext is displayed.
You will then have the option to swap letters. When prompted, choose two letters to swap. They will swap, and you can repeat the process until you have fully deciphered the text.
Once you think you have solved the cipher, exit the loop and navigate to build/ProjectDoc/deciphertext.txt to check if the key you have produced is the same as the true key.
- Navigate to the build folder
cd build - Run the command
CMake .. - Run
make - Run
./Project1 - Follow the prompts given in the termial and solve the cipher!