slicewire-nacl

1.0.2 • Public • Published

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'

Readme

Keywords

Package Sidebar

Install

npm i slicewire-nacl

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

2.6 kB

Total Files

4

Last publish

Collaborators

  • brahaha1435