/stega

A steganography tool for lossless message hiding in images.

Primary LanguagePythonOtherNOASSERTION

Stega

Stega is a simple steganography tool that allows you to losslessly embed messages into images. The image that comes back is same as the original.

The only requirement is that you use a lossless image format, so no jpeg images will work.

This implementation was adapted from a paper titled "Lossless Data Hiding in the Spatial Domain for High Quality Images", written by Hong Lin Jin, Masaaki Fujiyoshi, and Hitoshi Kiya

Usage:

image = Image.new('RGB', (111, 111))
msg = "What hath God wrought. "
s = Stega(image)
s.add_message(msg)

im, message = s.extract()
assert message == msg

Run tests:

$ ./runtests