Assignment written for CP460 Cryptography. A1_solution.py includes functions to read and analyze text files to determine whether or not they are plaintexts. Additional functions include encryption, decryption and cryptanalysis of the Extended Atbash Cipher, Spartan Scytale Cipher and Polybius Square Cipher. A1_test provides functions to print tests for each cryptographic method.
For testing purposes, download all files from repo
Latest version of python installed
https://www.python.org/downloads/
-
Pull all files to a folder
-
Run A1_test.py in cmd or using an interpreter (example: VS Code)
To run in cmd we first need to cd the project directory
cd C:\Users\...directory
Then we run the script:
python A1_test.py
Assuming the latest version of python is installed to your system.
Run A1_test.py for all testing
Each test displays the output of any given funcion from A1_solution.py
For example, the Scytale cipher will take the following text:
A Tale of Two Cities by "Charles Dickens".
encrypt it and return it as:
AwyD o iT "caCCkliheetan irsoel"fse. sTb
A1_output.txt is a sample output that can be cross refferenced. If the output matches, the encryption, decryption and cryptanalysis functions are working correctly.
Version 1.0
Keven Iskander