Skip to content

Collection of ciphers written for a cryptography class. 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 function…

Notifications You must be signed in to change notification settings

keveniskander/Cryptography_Cipher_Collection_1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cryptography - Collection of Encrypt/Decrypt Methods

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.

Getting Started

For testing purposes, download all files from repo

Prerequisites

Latest version of python installed

https://www.python.org/downloads/

Installing

  1. Pull all files to a folder

  2. 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.

Running the tests

Run A1_test.py for all testing

What are you 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 

Is the output accurate?

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.

Versioning

Version 1.0

Authors

Keven Iskander

About

Collection of ciphers written for a cryptography class. 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 function…

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages