31-03-2017, 01:49 PM
Steganography is the art of hiding the fact that communication is taking place, hiding information in other information. This project is developed to hide information in any image file. The scope of the project is the implementation of steganography tools to hide information includes any type of information file and image files and the path where the user wants to save the image and the extruded file.
Code is given below:
Code is given below:
Code:
% lena -grayscale 512*512 size
a=imread('lena.png')
[c1 c2 c3 c4 c5 c6 c7 c8]=bitplane(a);
% taking lsb bitplane only
C{1} = c1;
curr_plane = C{1};
row = size(cover, 1)/8;
col = size(cover, 2)/8;
% divid it into 8*8 blocks
blocks = mat2cell(curr_plane, ones(1, row)*8, ones(1, col)*8);
for bi = 1,size(blocks,1)
for bj = 1,size(blocks,2)
% for each block in curr_plane image , now identify the complex block
% and replace it with secret blocks first and then followed by conjugate
% blocks until all information finally embedded
my_8x8_block = blocks{bi,bj};
figure,imshow(my_8x8_block)
end
end