Skip to Content
Mastering Python for Networking and Security
book

Mastering Python for Networking and Security

by José Manuel Ortega
September 2018
Intermediate to advanced
426 pages
10h 46m
English
Packt Publishing
Content preview from Mastering Python for Networking and Security

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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Python for Networking and Security - Second Edition

Mastering Python for Networking and Security - Second Edition

José Manuel Ortega
Python for Cybersecurity

Python for Cybersecurity

Howard E. Poston, III

Publisher Resources

ISBN: 9781788992510Supplemental Content