Giter Site home page Giter Site logo

skocur / image-cipher Goto Github PK

View Code? Open in Web Editor NEW
56.0 4.0 16.0 17.62 MB

Steganography software for encrypting text into image that uses modified version of LSB (Least Significant Bit) algorithm.

License: Apache License 2.0

Java 87.58% CSS 0.14% Groovy 12.28%
encryption decryption image-processing javafx image-cipher java steganography photos lsb lsb-steganography

image-cipher's Introduction

License GitHub version

Image-Cipher

Steganography software for encrypting text into image that uses modified version of LSB (Least Significant Bit) algorithm. Project is part of this Medium article.

Usage:

Window option

To encrypt text into image:

  1. Find a photo to use for encryption.
  2. Enter the name of that photo in place of "image_name".
  3. Enter text to encrypt.
  4. Click "Encrypt".
  5. Enjoy!

To decrypt text from image:

  1. Enter name of image with encrypted message.
  2. Click "Decrypt".
  3. Enjoy!

Command line arguments:

-EM arg or --encryption-mode arg - sets encryption mode to one of the following:

  • if arg is equal to 1, then SingleColorEncryption will be used
  • if arg is equal to 2, then MultiColorEncryptio will be used
  • if arg is equal to 3, then LowLevelBitEncryption will be used
  • if arg is equal to 4, then RSAEncryption will be used. WARNING: EXPERIMENTAL IMPLEMENTATION

-DM arg or --decryption-mode arg - sets decryption mode with arg option analogically used as above (of course it will decrypt specific algorithm)

-f fileName or --file-name fileName - sets image name (or path to it) which will store encrypted data

Example:

java -jar Image-Cipher.jar -DM 3 -f my_awesome_image_with_embedded_data.file

Before encryption

Demo

After encryption

Demo

How does it work?

Demo

Error codes:

1 - IOException

2 - Invalid arguments (for example encrypting and decrypting at the same time)

Documentation is available on: JavaDoc

Additional tools

BinaryToImageConverter - converts any binary file to image.

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.