Text message encryption and decryption in image. Please refer to the documentation for more detailed information about the algorithms implemented.
Project is created with:
-
Visual Studio Code 1.35.1
-
Python 3.7.2
-
Python Pillow Library
Windows Installation
> pip install Pillow
Mac Installation
$ pip install Pillow
Linux Installation
$ pip install Pillow
- Create a text file named msg.txt. Put your secret message inside. (keep it under 1024 characters to be safe.)
- Run asciiToImage.py to create an image named msgImg.png.
- Run privateKeyGenerator.py to generate a randomly generated private key image called pk.png.
- Find an image of your liking and save it as pub.png.
- Run encrypt.py to generate eng.png (your encrypted image!).
- To decrypt you need to have both the private and public images that were used to make the original encrypted image in the same folder as the decrypt.py script. Run decrypt.py and you will find the original plain-text message in a file called decryptedMessage.txt.
- Burak Can Ozter - burak.ozter@dal.ca
- Mark Hooper