GithubHelp home page GithubHelp logo

image-message's Introduction

Code style: black License: MIT

Image-Message

Custom LSD (Least Significant Digit) Steganography algorithm that can encode 1 character per pixel.

How:

pixel data: (Red, Green, Blue) values 0-255

character: int value 0-255

char 'f' has an ascii value of 102

If the pixel we want to encode this char in has the RGB values (156, 222, 000)

Split 102 into three seperate digits 1  0  2. 

Replace the least significant digit in the respective color channel with these values.

So we end up with a new pixel containing the values (151, 220, 002)

Starting Pixel: (156, 222, 000) Byte to incode: 102 Encoded Pixel: (151, 220, 002)

Usage:

python ImageMessage.py -e [imagename] [message.txt]  (encode message)
python ImageMessage.py -d [imagename] [output.txt]   (decode message)

Example:

Original Image (400x400)

Alt Text

Output containing the entirety of Shakespeare's Romeo and Juliet

Alt Text

How to install:

  • Install the latest version of Python 3.
  • Install Pillow (Latest Python Image Library).
  • Clone the repo.

image-message's People

Contributors

mgiaramita avatar

Stargazers

 avatar

Watchers

 avatar  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.