File Exchange

image thumbnail

Steganography using LSB substitution

version 1.0 (1.51 KB) by

The term steganography means “cover writing”

27 Downloads

Updated

View License

This is a simplest steganographic technique that embeds the bits of secret message directly into the least significant bit (LSB) plane of the cover image. In a gray-level image, every pixel consists of 8 bits. The basic concept of LSB substitution is to embed the confidential data at the rightmost bits (bits with the smallest weighting) so that the embedding procedure does not affect the original pixel value greatly.

Comments and Ratings (9)

shajin selva

sir how can i use this code to hide secret text. kindly help me

what shlould i substitute in no of LSB bits to be substituted (n) ,What is the value of (n) because when i run it ,appear this error :

Enter the no of LSB bits to be subsituted- 1
Error using bitor
Inputs must have the same size.

Error in Steg (line 15)
S = uint8(bitor(bitand(x,bitcmp(2^n-1,8)),bitshift(y,n-8))); %Stego

yash

yash (view profile)

Hi, I'm new to matlab, if its not too much to ask, how to use your program? For example how to provide the cover image? I can't seem to use it. Thanks

Raj Wankhede

Hello, I am new to this and I have my final year project on Steganography.
Can anyone guide me regarding this algorithm?

Ashish Soni

Ashish Soni (view profile)

Mr Karthik, No of LSB bit you have to subsitute is 1 to 4. u can check the effects by varying this no.

can u add an image of your output process
'Enter the no of LSB bits to be substituted'
what no. should be entered

Akash Modi

ghassan78

thank you (Ashish Soni ) for this code , i test it but , i ask about no of LSB bits to be substituted (n) ,What is the value of (n) because when i run it ,appear this error :

Enter the no of LSB bits to be subsituted- 1
Error using bitor
Inputs must have the same size.

Error in Steg (line 15)
S = uint8(bitor(bitand(x,bitcmp(2^n-1,8)),bitshift(y,n-8))); %Stego

MATLAB Release
MATLAB 7.12 (R2011a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video