Skip to content

razshely/LSB_Steganography

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

LSB_Steganography

This Project Describes the use of LSB Steganography. Do check the python script written to implement lsb steganography

#python LSB.py -f -e <secret_message> : To embed a secret message.
#python LSB.py -f -x : To extract the secret message.

What is LSB Steganography

LSB Steganography is an image steganography technique in which messages are hidden inside an image by replacing each pixel's least significant bit with the bits of the message to be hidden.

the application of LSB

In a RGB image, each pixel is represented by 24 bits
Suppose the following are some of the bits in a Grayscale image

11110011_11110011_11110011
11011011_11011011_11011011
10110110_10110110_10110110
11011100_11011100_11011100
11011111_11011111_11011111
11010111_11010111_11010111
00100110_00100110_00100110
01000011_01000011_01000011

Suppose you wish to hide "dad" in it. The ascii value of "dad" is 01100100_01100001_01100100. The algorithm simply replaces the last bit of the bytes with the consecutive bits of the word "dad", Giving us

11110010_11110011_11110011
11011010_11011010_11011011
10110110_10110110_10110110
11011101_11011101_11011100
11011110_11011110_11011110
11010111_11010110_11010111
00100111_00100110_00100110
01000011_01000010_01000010

In addition the code add to the image our end secret $@FINISH@$
and on the decode that is the way the code know where the secret end

Example

I typed #python LSB.py -f flower.png -e check 1 . 2 . 3
and that the two png files that one of them contiend the secret massage(the left) flowerr

when I typed this: python LSB.py -f end69.png -x
the The output I received is: The secret massage is: check 1 . 2 . 3

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages