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
- Host: GitHub
- URL: https://github.com/elsehow/cone-of-silence
- Owner: elsehow
- Created: 2016-03-29T22:13:09.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-29T22:21:51.000Z (about 10 years ago)
- Last Synced: 2025-01-23T10:05:55.064Z (over 1 year ago)
- Language: JavaScript
- Size: 700 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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

## 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