tiny-cipher
v1.0.1
Published
Tiny cipher/decipher
Downloads
10
Readme
tiny-cipher
Tiny cipher/decipher
Example
var cipher = require('tiny-cipher'),
iv = cipher.iv(256),
decoded = 'hello world!',
encoded = cipher(decoded, true, iv);
console.log(encoded);
console.log(decoded === cipher(encoded, false, iv));
API
cipher(arg, encode, iv)
Returns a cipher or decipher String
iv(size=256)
Returns a random byte String of a specific size
License
Copyright (c) 2015 Jason Mulligan Licensed under the BSD-3 license