2.0.0 • Published 4 years ago

saxamaphone v2.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

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

cli

npm i saxamaphone -g