Giter Site home page Giter Site logo

sarangmp4 / lsb-digital-image-stegenography Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 7.12 MB

Steganography hides communication by embedding data within other data, often using digital images due to their prevalence online. Various techniques exist, each with strengths and weaknesses, catering to different needs like absolute invisibility or hiding large messages.

Home Page: https://en.wikipedia.org/wiki/Steganography

C 99.24% Makefile 0.76%
bit-manipulation c-project data-hiding lsb-steganography steganography

lsb-digital-image-stegenography's Introduction

LSB Digital Steganography

Steganography is the practice of representing information within another message or physical object, in such a manner that the presence of the information is not evident to human inspection. This project implements Least Significant Bit (LSB) digital steganography to hide a text message within a .bmp image file. The project includes a C program for encoding the message into the image and decoding the message from the image.

How it Works

The LSB digital steganography technique involves replacing the least significant bit of each byte in the image with the bits of the message to be hidden. Since the least significant bit has the least impact on the visual appearance of the image, this method allows for hiding data without noticeably altering the image.

Features

  • Encoding: Embedding a text message into the least significant bits of a BMP image.
  • We are using MAGIC_STRING as a password for authentication.
  • Decoding: Extracting a hidden message from the least significant bits of a BMP image.
  • Supports BMP Images: The program specifically works with BMP (Bitmap) images for steganography operations.

Steps

  1. Encoding :
  • Run the encode.c program, providing the path to the input image file (.bmp) and the text file containing the message to be hidden.
  • The program will create a copy of the input image with the message encoded into it.
  1. Decoding :
  • Run the decode.c program, providing the path to the encoded image file (the output of the encoding process).
  • The program will extract the hidden message from the image and store to new file.

File Structure

  • encode.c : C program for encoding a text message into a .bmp image file.
  • decode.c : C program for decoding a text message from a .bmp image file.
  • sample.bmp : Sample input image file.
  • secret.txt : Sample text file containing the message to be hidden.
  • output.bmp : Output image file with the hidden message encoded.
  • Makefile : File for running the code.

Files

Requirements

  1. C Compiler (e.g., GCC)
  2. .bmp image file
  3. Text file containing the message to be hidden

Example

  • Encoding Use command :- ./final.exe -e sample.bmp secret.txt

Encoding command

Encoded Message

  • Decoding Use command :- ./final.exe -d output.bmp

Decoding Command

Decoded Message

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any new features, enhancements, or bug fixes.

Acknowledgments

This project was inspired by the concept of LSB steganography and aims to provide a simple implementation for educational purposes.

lsb-digital-image-stegenography's People

Contributors

sarangmp4 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.