Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Steganography cheap trick - hide string data in the least-significant bits of an array.
JavaScript
Branch: master
Failed to load latest commit information.
img
.gitignore add example
.travis.yml add license, travis
LICENSE.md add license, travis
README.md Update README.md
example.js add example
index.html typo fix
index.js New length encoding approach
package.json
test.js first commit

README.md

lsb Build Status

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, maybe with jpgjs :)

See example code for image hiding in the demo or voxel-painter.

Installation

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

Something went wrong with that request. Please try again.