PySteganography
A Python program that allows you to save secret messages in images
Installation
pip install pystego
Usage/Examples
To use a simple interface in terminal use the following command
pystego interface
Other CLI commands:
pystego encode "My secret message" your_image.png
pystego decode your_image.png
You can use -e in both commands if you want to use AES-256 bit encryption.
Documentation
To encode a message in an image use the encode_img function as in the example:
from pysteganography import encode_img
img_path = 'test_image.png'
secret_message = 'Example secret message'
encode_img(img_path, secret_message)
To extract a message from an image use the decode_img function as in this example:
from pysteganography import decode_img
img_path = 'test_image.png'
secret_message = decode_img(img_path, secret_message)
print(secret_message)