Hide string data in the least-significant bits of an array/image
Hide string data in the least-significant bits of an array. It's an easy way of, say, storing information in images invisibly. Note that if you're trying to hide something important you should probably use something else :)
$ npm install lsb
require('lsb').encode(channel, stegotext, [iterator])
channel is the array to hide the
stegotext string in.
an optional callback for determining the index of each hidden byte, if you want
to get tricky.
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.