Steganana is a little project that had to be done individually during a semester at CSUMB. Its purpose is very simple: hide some content inside an image, without this content actually being visible to the user.
Steganana is actually a simple class, but a sample wrapper is given to simplify its use, as well as providing a console tool.
- python 2.7 or higher
- PIL (or Pillow)
Installation is a breath: all that's needed is a simple git clone
git clone https://github.com/Mandor53/Steganana
python main.py --help
python main.py path/to/inputimage.png --encode "this is my sample text" --output path/to/output.png
If not provided, the output path will be output.png inside the active directory
python main.py path/to/inputimage.png --encode "path/to/inputcontent.txt" --output path/to/output.png
python main.py path/to/encodedimage.png
Sometimes, you might want to be able to only get the actual decoded content, and not all the verbose stuff Steganana outputs
python main.py path/to/encodedimage.png --silent > output.txt
from src.Steganana import Steganana
stegananaInstance = Steganana("path/to/inputimage.png", True)
stegananaInstance.encode("I want to encode this string", False, "path/to/output.png")
stegananaInstance.encode("path/to/inputcontent.txt", True, "path/to/output.png")
print(stegananaInstance.decode())