Stegano | Python steganography module

Steganography is the art and science of writing hidden messages in such a way that no one, apart from the sender and intended recipient, suspects the existence of the message, a form of security through obscurity. Consequently, functions provided by Stéganô only hide messages, without encryption. Steganography is often used with cryptography.

Stéganô is a pure Python steganography module. Different methods of steganography and steganalysis are provided.


$ sudo pip install Stegano


A tutorial is available.

Use Stéganô as a library in your Python program

If you want to use Stéganô in your Python program you just have to import the appropriate steganography technique. For example:

>>> from stegano import lsb
>>> secret = lsb.hide(“./tests/sample-files/Lenna.png”, “Hello World”)
>>> clear_message = lsb.reveal(“./Lenna-secret.png”)

Use Stéganô as a program

 Hide a message

Reveal the message

$ stegano-lsb reveal -i Lena1.png

Secret Message

Hide the message with the Sieve of Eratosthenes

$ stegano-lsb-set hide -i ./tests/sample-files/Lenna.png -m 'Secret Message' --generator eratosthenes -o Lena2.png