Steganography is the process of hiding a secret message within a larger one in such a way that someone can not know the presence or contents of the hidden message.
The purpose of Steganography is to maintain secret communication between two parties. Unlike cryptography, which conceals the contents of a secret message, steganography conceals the very fact that a message is communicated.
Although steganography differs from cryptography, there are many analogies between the two, and some authors classify steganography as a form of cryptography since hidden communication is a type of secret message.
The secret can be in the form of a text or in the form of an image(i.e Hiding Text inside an Image or hiding Image inside an Image)
Text Steganography: Hiding Text Inside an Image.
Image Steganography: Hiding an Image inside an Image.
1. Open CV
2. Least Significant Bit Steganography
3. Python Imaging Library
The advantage of steganography over cryptography alone is that the intended secret message does not attract attention to itself as an object of scrutiny.
Plainly visible encrypted messages, no matter how unbreakable they are, arouse interest and may in themselves be incriminating in countries in which encryption is illegal.
Run the respective ipynb file and in the place of image choose the image you want to choose..
Then run the encode_data function to encode the desired data.
After encoding the data run the decode_data function to decode the encoded data.
Run the merge2img2 function by selecting the images.
And then run the unmerge2 function to get the initial image after merging.
Original Image | Image After Encoding |
---|---|
Image 1 is merged on Image 2..
Cover Image | Image to be Merged |
---|---|
Merged Image | Unmerged Image |
---|---|
Rahul Kumar Patro