Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hughsk/lsb
Steganography cheap trick - hide string data in the least-significant bits of an array.
https://github.com/hughsk/lsb
Last synced: 12 days ago
JSON representation
Steganography cheap trick - hide string data in the least-significant bits of an array.
- Host: GitHub
- URL: https://github.com/hughsk/lsb
- Owner: hughsk
- License: other
- Created: 2013-03-03T06:38:55.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-03-22T13:42:18.000Z (over 11 years ago)
- Last Synced: 2024-10-17T16:40:31.216Z (22 days ago)
- Language: JavaScript
- Homepage: http://hughsk.github.com/lsb
- Size: 584 KB
- Stars: 27
- Watchers: 10
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# lsb [![Build Status](https://secure.travis-ci.org/hughsk/lsb.png?branch=master)](http://travis-ci.org/hughsk/lsb) #
Hide string data in the least-significant bits of an array. It's an easy way
of, say, storing information in images invisibly. If you're feeling game,
try hiding data [in a JPG's DCT coefficients](http://www.guillermito2.net/stegano/jsteg/index.html),
maybe with [jpgjs](https://github.com/notmasteryet/jpgjs) :)See example code for image hiding in the
[demo](https://github.com/hughsk/lsb/blob/master/example.js) or
[voxel-painter](http://github.com/maxogden/voxel-painter).## Installation ##
``` bash
$ npm install lsb
```## Usage ##
`require('lsb').encode(channel, stegotext, [iterator])`
Where `channel` is the array to hide the `stegotext` string in. `iterator` is
an optional callback for determining the index of each hidden byte, if you want
to get tricky.`require('lsb').decode(channel, [iterator])`
Once encodeded, use this on the same `channel` array to return the hidden
string. If you used an `iterator` callback before, you'll need to use it again
here or you'll get garbage text.