Skip to content

Hiding text inside images using steganography, without distorting the image [too much]

Notifications You must be signed in to change notification settings

neginkheirmand/Steganography

Repository files navigation

Steganography

This project of mine was inspired by computerphile's video and implemented Using OpenCV Library in python

Hiding text inside images using steganography, without distorting the image too much.

Content:

binLibrary.py -> text to binary array

changePhoto.py-> hide text inside specified image

decoder.py-> decoder

steganography-> run to see the magic happen :)

.\test\difference.py -> cant see any difference between the images? run this scrypt to mark the different pixels with red 

Examples:

All the images are compressed so if you want to see the original, pleqase refer to the provided links.

primary image:

raw here

After hiding text:

you are not only looking at a photo of my faculty camp, but also python's documentation. Yes all the 113096 lines of it(4MB of documentation).

raw here

You think they are the same picture? look at the next photo in which the different pixels are marked as red:

raw here

With a little a zoom on difference.png:

now you can clearly see the difference and exactly where the documentation ends in the image.

supports:

  • .png and .bmp files
  • if the input text is too large put it on .txt file and run the changePhoto.py after uncommenting the last line and writing the path of the photo and the .txt file as shown in the changePhoto.py scrypt.

About

Hiding text inside images using steganography, without distorting the image [too much]

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages