This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

steganography.ts

2.0.0 • Public • Published

steganography.ts

steganography.ts is a TypeScript library used to encode secret messages inside images and to decode them again.
It will be a replacement of steganography.js to TypeScript. The usage itself is the same.

How does it work

Behind the scenes steganography.ts 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. You just have to add the .js-file to your website and by now you can make use of the global object steganography or short steg and the two provided functions encode and decode.

$ npm install steganography.ts
  • encode takes a message as String and a image as Image, 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 Image, HTMLImageElement or String representing the data-URL of the image and returns the message which was found in the image.

Readme

Keywords

none

Package Sidebar

Install

npm i steganography.ts

Weekly Downloads

1

Version

2.0.0

License

MIT

Unpacked Size

56.6 kB

Total Files

39

Last publish

Collaborators

  • nishikuma