Skip to content
/ stegpy Public

Simple steganography program based on the LSB method.

License

Notifications You must be signed in to change notification settings

izcoser/stegpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stegpy

A program for encoding information in image and audio files through steganography.

On the left, a house with a steganographically hidden image. On the right, the extracted hidden image of a cat. It is revealed by removing all but the last significant bit of each color component in the host image.


Supported host formats:

  • PNG
  • BMP
  • GIF
  • WebP
  • WAV

Images in a different format are automatically converted to PNG. Different audio formats are not supported at all.


Dependencies:

  • numpy
  • cryptography
  • Pillow (PIL fork)
$ pip install -r requirements.txt

How to use:

  • Hide a message or file:
$ python3 steg.py "Hello World!" image.png
  • Extract it:
$ python3 steg.py _image.png
  • Encrypt:
$ python3 steg.py "Hello World!" image.png -p
Enter password (will not be echoed):
Verify password (will not be echoed):
$ python3 steg.py _image.png -p
Enter password (will not be echoed):
Hello World!
  • More options:
$ python3 steg.py -h

To do:

  • Add docstrings
  • Allow encoding across multiple files
  • Support JPEG & FLAC as hosts

Releases

No releases published

Packages

No packages published

Languages