LSB Steganography in Images: Easy MATLAB Tutorial to Hide Messages (Hindi) ๐Ÿ“ธ

Learn how to hide secret messages in images using LSB Steganography with simple MATLAB code. Follow step-by-step instructions in Hindi to secure your information creatively!

LSB Steganography in Images: Easy MATLAB Tutorial to Hide Messages (Hindi) ๐Ÿ“ธ
Prosperity in Pakistan
356 views โ€ข Jan 9, 2022
LSB Steganography in Images: Easy MATLAB Tutorial to Hide Messages (Hindi) ๐Ÿ“ธ

About this video

Step. 1:Write your name in Paint Program and save this file as โ€œSecret.jpgโ€™
Step. 2:include your Photo( . jpg ) in this folder

Step. 3:
%% Save this File as โ€œConceal.mโ€

%% Import the Actual Image
%% You must include your Image and replace the name of image โ€˜shah.jpgโ€™ with yours
Actual = imread('shah.jpg');

figure,imshow(Actual);title('Actual Image')
%% Import the Secret_Msg Image and converting to Binary Image
Secret_Msg = imread('Secret.jpg');
Msg_binary = imbinarize(rgb2gray(Secret_Msg));

%% Resizing the Secret_Msg and Actual image to same size
Msg_binary = imresize(Msg_binary,size(Actual(:,:,1)));
%% Selecting 1-bit plane and changing it to Secret_Msg image
New = Actual;
New(:,:,1) = bitset(New(:,:,1),1,Msg_binary);

%% Displaying Concealed Image
figure,imshow(New);title('Concealed Image')
%% Displaying Actual Image And Concealed Image
figure,imshowpair(Actual,New,'montage');title('Actual Image And Concealed Image ---Read from left to right')

%% Saving/writing the Concealed Image file
imwrite(New,'ConcealedImg.bmp');
% clear all;
----------------------------------------------------
Step 4: Save another code file as โ€œGetMsg.mโ€
%% Importing the Received image with Secret Message

Recieved_Img = imread('ConcealedImg.bmp');

%% Displaying the Concealed Image i.e. Received image with (Hidden)Secret Message

figure,imshow(Recieved_Img);title('Consealed Image')

%% Extracting the 1-bit bitPlane of the Recieved Image(Concealed Image) with hidden Messsage

MessageImage = bitget(Recieved_Img(:,:,1),1);

%% Displaying the Secret Message

figure,imshow(logical(MessageImage));title('Secret Message')

Tags and Topics

Browse our collection to discover more content in these categories.

Video Information

Views

356

Likes

13

Duration

2:58

Published

Jan 9, 2022

Related Trending Topics

LIVE TRENDS

Related trending topics. Click any trend to explore more videos.