Coder Social home page Coder Social logo

steganographer's Introduction

Steganographer v1.0.1

Steganographer is a JavaScript/TypeScript library used to encode secret messages inside images and to decode them again. The original project is from https://github.com/petereigenschink/steganography.js by Peter Eigenschink - steganographer removed unused code, adds some quality of life improvements, and allows this to be used easily as a module in JavaScript or TypeScript projects.

Demo

https://hyundotio.github.io/steganographer/dist

How does it work

Behind the scenes steganographer uses an algorithm to convert the given message into appropriate binary data which then will be hidden in the alpha channel of the given cover image. A HTML5 canvas element is then used to process the data and the image. To decode a message from a given image, a similiar algorithm is applied on the imagedata.

How to use it

The use of the library is very simple.

  • For plain HTML, download steganographer.js file from the /dist folder and add <script src="./steganographer.js"></script> and call Steg.decode and Steg.encode

  • When using it as a module, download steganographer from npm: npm i steganographer and add import { decode, encode } from 'steganographer' and plainly call decode and encode in your project.

  • encode takes a message as String and a image as HTMLImageElement or string representing the data-URL of the cover image. Returns the data-URL of the image with the encoded message inside.

  • decode takes a image as HTMLImageElement or string representing the data-URL of the image and returns the message which was found in the image.

To build from source:


npm run build

or


yarn build

License

MIT

steganographer's People

Contributors

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