tiny-cipher

1.0.1 • Public • Published

tiny-cipher

Tiny cipher/decipher

build status

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

Readme

Keywords

Package Sidebar

Install

npm i tiny-cipher

Weekly Downloads

1

Version

1.0.1

License

BSD-3-Clause

Last publish

Collaborators

  • avoidwork