An open API service indexing awesome lists of open source software.

https://github.com/elsehow/cone-of-silence

encrypt/decrypt javascript objects with private-box
https://github.com/elsehow/cone-of-silence

Last synced: about 1 year ago
JSON representation

encrypt/decrypt javascript objects with private-box

Awesome Lists containing this project

README

          

# cone-of-silence

encrypts and decrypts javascript objects using [private-box](https://github.com/auditdrivencrypto/private-box), in node or the browser

![](cone.png)

## installation

npm install cone-of-silence

## usage

```javascript
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