steganographer package

Submodules

steganographer.steganographer module

Module contents

Given an image and a message or file steganographer will hide the message or file in the bits of the image.

class steganographer.Header(data_len=0, bits_used=1, file_name='')[source]

Bases: object

The header that is stored at the beginning of steganogrified images.

header_as_bytes

Converts the header into a bytes object.

header_length

Returns the length of the header data.

retrieve_header(potential_header)[source]

Retrieves the header from the data passed in and sets the appropriate attributes.

Returns if there is a valid header or not.

class steganographer.Steganographer[source]

Bases: object

Takes care of hiding and revealing messages and files in an image.

steganographer_hide(clean_image_file, text, dirty_image_file='')[source]

Hides text inside clean_image_file and outputs dirty_image_file.

Takes in a clean image file name, a dirty image file name and text that will be hidden. Hides the text in clean_image_file and outputs it to dirty_image_file.

steganographer_hide_file(clean_image_file, file_to_hide, dirty_image_file='')[source]

Hides file_to_hide inside clean_image_file and outputs to dirty_image_file.

steganographer_reveal(fimage)[source]

Reveals whatever data is hidden in the fimage file least significant bits.