1.0.2 • Published 8 years ago

cone-of-silence v1.0.2

Weekly downloads
3
License
BSD-3-Clause
Repository
github
Last release
8 years ago

cone-of-silence

encrypts and decrypts javascript objects using private-box, in node or the browser

npm.io

installation

npm install cone-of-silence

usage

var cone = require('cone-of-silence')

var bob = cone.keypair()
var alice = cone.keypair()
var msg = {
  muy: 'buena',
  onda: null,
}
var encrypted = cone.encrypt(msg, [bob.publicKey, alice.publi    cKey])
var decrypted = cone.decrypt(encrypted, alice.secretKey)

license

BSD