shannon-bindings

0.1.0 • Public • Published

shannon-bindings

Node.js bindings for the Shannon cipher

Check the reference implementation repository mirror for more details.

Setup

npm i shannon-bindings

Usage

const Shannon = require('shannon-bindings')

const shannon = new Shannon(key /* Buffer */)

shannon.nonce(nonce /* Buffer */)
shannon.decrypt(encryptedBuffer /* Buffer, decrypted in place */)
shannon.encrypt(buffer /* Buffer, encrypted in place */)

/* mac is calculated in-place */
const mac = Buffer.alloc(N)
shannon.mac(mac)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    6
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    6

Package Sidebar

Install

npm i shannon-bindings

Weekly Downloads

5

Version

0.1.0

License

MIT

Unpacked Size

24.8 kB

Total Files

10

Last publish

Collaborators

  • elbywan