Steganography with Stepic

Stepic provides a Python module and a command-line interface to hide arbitrary data within images. It slightly modifies the colours of the pixels in the image to store the data.

To set up stepic, just install it with the pip install stepic command.

Stepic’s Steganographer class is the main class of the module,where we can see the methods available for encoding and decoding data in images:

In the following script, compatible with python version 2.x, we can see the implementation of these functions.

You can find the following code in the  stepic.py file inside the steganography folder:

# stepic - Python image steganography ...

Get Mastering Python for Networking and Security now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.