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.
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