Skip to content

encrypt/decrypt javascript objects with private-box

Notifications You must be signed in to change notification settings

elsehow/cone-of-silence

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

encrypt/decrypt javascript objects with private-box

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published