Coder Social home page Coder Social logo

lsb-steganography's Introduction

Least Significant Bit Steganography

Version: 3.0.0

Authors: Andrew Quach and Stanislav Lyakhov

Introduction

Steglsb has two functions: Stenographic LSB encoding and decoding. Encoding embeds a secret image in the last significant bits of a cover image. Decoding extracts a secret image from an steganographic image using LSB.

Each mode of steglsb [-d/-e] requires an argument detailing the number of bits. In other words, the number of rightmost bits of each pixel used in encoding and decoding.

EX: If bits = 3, the LSB of 11011010 is 010.

A larger number of bits specified means a higher steganographic capacity. However, it also means a more visible secret.

Usage

Encoding:
Usage: steglsb.py -e cover_img secret_img bits outfile [mode]

> Embed a secret image into a cover image using LSB

    Positional Arguments:
        cover_img  - path to cover image
        secret_img - path to secret image
        bits       - number of rightmost bits to use (between 0-8)
        outfile    - path to output file
    Optional Arguments:
        mode       - image mode to use 'RGB', 'RGBA', 'L', 'CMYK'

Notes: The cover image should be larger than the secret image.
       The mode defaults to the mode of the cover image.
       CMYK LSB is not optimal. It is recommended to force CMYK to RGB. 
Decoding:
Usage: steglsb.py -d steg_img bits outfile

> Extract a secret image from a steganographic image using LSB

    Positional Arguments:
        steg_img   - path to steg image
        bits       - number of rightmost bits to use (between 0-8)
        outfile    - path to output file

Usage Examples:

Encoding Example: Insert 'secret.jpg' into the image 'cover.png' located in the 'example' folder
                  Type the following command: './steglsb.py -e example/cover.png example/secret.jpg 2 output.png'
                  The program will run and create the file 'output.png'
                  'output.png' will look like 'cover.png' but contain 'secret.jpg'

Decoding Example: There is a secret image in hidden.png
                  Type the following command: './steglsb.py -d example/hidden.png 2 secret.png'
                  The secret image is hidden in the last 2 LSBs.
                  A 'secret.png' file will be created containing the secret image.

Dependencies

This program depends on Python3 Pillow.

Installation Using Pip:
sudo apt-get install python3-pip
sudo pip3 install Pillow

lsb-steganography's People

Contributors

aqcurate avatar staslyakhov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lsb-steganography's Issues

Finishing Touches:

Alright, we just need to do two last things:

  1. Catch any bugs that appear
  2. Create a good example usage of the program and add it to README

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.