Skip to content

mgiaramita/Image-Message

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Code style: black License: MIT

Image-Message

Custom LSD (Least Significant Digit) Steganography algorithm that can encode 1 character per pixel.

How:

pixel data: (Red, Green, Blue) values 0-255

character: int value 0-255

char 'f' has an ascii value of 102

If the pixel we want to encode this char in has the RGB values (156, 222, 000)

Split 102 into three seperate digits 1  0  2. 

Replace the least significant digit in the respective color channel with these values.

So we end up with a new pixel containing the values (151, 220, 002)

Starting Pixel: (156, 222, 000) Byte to incode: 102 Encoded Pixel: (151, 220, 002)

Usage:

python ImageMessage.py -e [imagename] [message.txt]  (encode message)
python ImageMessage.py -d [imagename] [output.txt]   (decode message)

Example:

Original Image (400x400)

Alt Text

Output containing the entirety of Shakespeare's Romeo and Juliet

Alt Text

How to install:

  • Install the latest version of Python 3.
  • Install Pillow (Latest Python Image Library).
  • Clone the repo.

About

Image Steganography in Python.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages