cone-of-silence
v1.0.2
Published
encrypt/decrypt javascript objects with private-box
Downloads
1
Readme
cone-of-silence
encrypts and decrypts javascript objects using private-box, in node or the browser
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