Skip to content

KrDevanshu06/steganography-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Secure Image Steganography App

This is a simple Streamlit app that allows you to encode secret messages into images using LSB (Least Significant Bit) steganography and decode hidden messages from images.

Features

  • Encode Message:

    • Upload an image.
    • Enter your secret message.
    • The app encodes the message into the image and provides a download link for the modified image.
  • Decode Message:

    • Upload an image with a hidden message.
    • The app decodes and displays the secret message.

Directory Structure

steganography_app/
│── app.py                     # Main Streamlit application
│── requirements.txt           # List of dependencies
│── README.md                  # Project documentation
│
├── images/                    # Contains sample images for testing
│   ├── sample_input.png       # Sample input image (add your own image)
│   ├── encoded_sample.png     # Example of an encoded image (optional)
│
├── utils/
│   └── steganography.py       # Module with encoding/decoding functions
│
└── saved_images/              # Folder to store user-uploaded/processed images (optional)

Setup and Installation

  1. Clone the Repository:

    git clone <repository_url>
    cd steganography_app
  2. Create a Virtual Environment (optional but recommended):

    python -m venv venv
    source venv/bin/activate   # On macOS/Linux
    venv\Scripts\activate      # On Windows
  3. Install Dependencies:

    pip install -r requirements.txt
  4. Run the Streamlit App:

    streamlit run app.py

Usage

  • Navigate to the Encode Message or Decode Message section from the sidebar.
  • Follow the on-screen instructions to upload images and encode or decode messages.

images/ Folder

Place your sample images (e.g., sample_input.png and optionally encoded_sample.png) in this folder. These images are used for testing and demonstration purposes.


saved_images/ Folder

This folder is intended for storing user-uploaded or processed images if needed. It can remain empty initially.

About

This project is a steganography tool that allows users to hide and extract secret messages within images using Least Significant Bit (LSB) encoding. The tool provides a user-friendly Streamlit UI for seamless encoding and decoding of messages.

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages