#bit-wrap.js
![](https://i.imgur.com/hT5USpw.png)
![node](https://img.shields.io/node/v/2)
##About
bitwrap.js is a lightweight steganographic library for node.js and browser. It wraps data in random bits to make your data look useless and random.
##Examples
You can use stringWrap
for simple strings.
const bitwrap = require('bitwrap')
let a = bitwrap.stringWrap('Hello!'),
b = bitwrap.unWrapString(a)
console.log(a, '\n', b)
smartWrap
can be used for objects.
const bitwrap = require('bitwrap')
let Obj = {
foo: 'bar',
bar: () => 'foo',
hello: {
world: true
}
},
a = bitwrap.smartWrap([Obj]),
b = bitwrap.unWrapString(a)
console.log(a, '\n', JSON.stringify(b))
For more specific use you can use arrayWrap
to wrap single arrays of integers. Otherwise use smartWrap
const bitwrap = require('bitwrap')
let arr = [69, 420, 666, 1337],
a = bitwrap.arrayWrap(arr),
b = bitwrap.unWrap(a)
console.log(a, '\n', b)