slicewire-nacl
v1.0.2
Published
SliceWire Encryption Module
Downloads
6
Readme
SliceWire-NaCL
SliceWire Encryption Module
SliceWire NaCL Uses The Public Key To Encrypt And The Private Key To Decrypt. The Private Key Can Only Decrypt And The Public Key Can Only Encrypt.
Usage:
const nacl = require('slicewire-nacl')
const encrypted = nacl.encrypt('slicewire-nacl', PUBLIC_KEY)
//===> Uint8Array
const decrypted = nacl.decrypt(encrypted, PUBLIC_KEY, PRIVATE_KEY)
//===> 'slicewire-nacl'