2.0.0 • Published 6 years ago
saxamaphone v2.0.0
saxamaphone :saxophone: :saxophone: :saxophone:
about saxamaphone
You can reach me on my saxamaphone, uses tweetnacl-sealedbox-js to send and receive encrypted messages without sharing a global secret.
library
var saxamaphone = require('saxamaphone')
var sax = saxamaphone({
id: 'm-onz',
password: 'iamalittleteapot'
})
sax.on('ready', function () {
var encrypted = sax.encrypt(sax.getKeypair().publicKey, 'hello world!')
var decrypted = sax.decrypt(encrypted)
console.log(decrypted.includes('hello world!'))
})cli
saxamaphone --login m-onz
<enter_password>
encrypt <recipient_public_key> <message>
decrypt <message>install
library
npm i saxamaphone --savecli
npm i saxamaphone -g