Skip to content

Steganography is the practice of concealing a message within another message or a physical object. In computing/electronic contexts, a computer file, message, image, or video is concealed within another file, message, image, or video.

Notifications You must be signed in to change notification settings

IlyasKadi/LSB-based-Image-steganography-using-MATLAB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 

Repository files navigation


Logo

LSB based Image steganography using MATLAB

Final projects

About The Project

This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.

  1. How to install MATLAB in Windows
  2. Clone the repo
    git clone https://github.com/IlyasKadi/LSB-based-Image-steganography-using-MATLAB.git

(back to top)

Image Steganography using LSB Algorithm

In image steganography the information is hidden exclusively in images. The most common and popular method of modern day steganography is to make use of LSB (least significant bit) of picture's pixel information. This technique works best when the file is longer than the message file and if image is grayscale.

Program GUI
Matlab program for Image Steganography using Least Significant Bit (LSB) Algorithm with the following features: - Hiding text data in a selected image. - Extract text data from a selected image. - Analyze and compare between the original and stego-image (PSNR and Histogram)

Files

LSB.m : GUI for the program.
LSB_HIDE.m : Hide function.
LSB_EXTRACT.m : Extracting function.
Calc_PSNR.m : PSNR calculator function.

How to Run Program

1. Download project.
2. Open MATLAB program.
3. Open the directory of the project.
4. Open LSB.m file and click Run button.

You will see this GUI:
Program GUI

How to Hide

1. Run program.
2. Click on Hide tab.
3. Click on "Select Cover Image" button and select your original image.
4. Click on "Select a Text" button and select your text.
   (I have added examples of different 500, 4000 and 32000 character sizes for test).
5. Click on "Encrypt" button that will ask you for path to save.
5. You will see a PSNR will automatically.
6. Click on "Statistics" button for Histogram between the original and stege-image.

After Hiding msg-4000ch.txt you will see this:
Hide ch inside Image

How to Extract

1. Run program.
2. Click on Extract tab.
3. Click on "Select Stego-Image" button and select your stego-image.
4. Click on "Extract" button that will ask you for path to save.
5. You will see an Alert tell you "Extracted done".
6. Open the path then you will see your extracted file.

After Extracting stego-img500.bmp you will see this:
Extract Program
Your extracted file Recover-msg.txt: Extract

Histogram

Histogram between original and stego4=32000ch image
Histogram between original image and stego-image after hiding 32000 character:

Notes

  • The higher PSNR indicates that the quality of the stego-image is similar to the cover image.
  • The larger image size, the more data you can hide.
  • For a 24-bit color image as the cover image, you can store approximately 3/8th of the cover image size.
  • For a grayscale image as the cover image, you can store approximately 1/8th of the cover image size.

Our Team : AIT EL KADI Ilyas - AZIZ Oussama

Project Link : LSB based Image steganography using MATLAB

Encadré par : Mme.Mouhtadi Meryeme

(back to top)

About

Steganography is the practice of concealing a message within another message or a physical object. In computing/electronic contexts, a computer file, message, image, or video is concealed within another file, message, image, or video.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published