Created a GUI program using Python that encrypts text files with multiple encryption layers and can decrypt them
Text is encrypted using a Vigenere Cipher, Affine Cipher and substitution
To install and run, clone the repository, navigate to the cloned repository and run the following commands:
pip install -r requirements.txt
python text_encryption.py
- From drop-down menu select 'Encrypt Text File'
- In the prompt asking for a file, select the file you wish to encrypt
- Enter a key (This key will be used in the Vigenere Cipher)
- Click "Encrypt"
The program will then encrypt the inputted text file and write the result to a new text file called "encrypted.txt". It will also create another file called "encryption_keys.txt" and write both the cipher alphabet that was used for substitution and the Vigenere Key to this file. This file is needed to decrypt the text file you just encrypted as the program uses symmetric-key algorithms
- From drop-down menu select 'Decrypt Text File'
- In the prompt asking for your encrypted file, select the file you wish to decrypt
- In the prompt asking for the file containing the encryption keys, select the "encryption_keys.txt" that was generated with the text file you first encrypted
- Click "Decrypt"
The program will then decrypt the encryted file you selected using the file "encryption_keys.txt" and the decrypted results will be written to a new text file called "decrypted.txt".
The repository contains example files that would be generated from running the program
[1] Cryptography with Python
[2] Vigenère Cipher
[3] Affine Cipher
[4] Substitution Cipher
[5] Difference between Monoalphabetic Cipher and Polyalphabetic Cipher
[6] Difference Between Symmetric and Asymmetric Key Encryption
[7] Python GUI Programming With Tkinter