A simple python app that allows a user to encode a secret python program in a photo as well as decode and run a secret python program that has already been encoded.
STEGANOGRAPHY is the process by which one hides a secret file or message within another file. This app uses steganography to hide a python program within an image.
You can choose to ENCODE an image with a program, or DECODE an program from an image. If you choose to DECODE, you can decide whether or not you want to run the program.
Please only choose to run embedded programs from trusted sources. I do not currently have any safety precautions in place to protect you if you choose to run a damaging program.
For both ENCODING and DECODING, you need a PATTERN. The pattern is used to determine the spacing between encoded pixels. For example, if, during ENCODING, you choose 7, every seventh pixel will be encoded with a character from your python program. During DECODING, you need to supply the decoder with the correct pattern with which the file was originally encoded.
To run the project, run the menus.py
file.
pip3 install opencv-python numpy
To encode and decode files, files need to be within the src folder of the project.
python -m pytest
Let's Hide a Secret Message in an Image with Python and Opencv (Erik Whiting)
How To Hide Data in Images Using Python (Ashwin Goel)