raxor

1.0.0 • Public • Published

RAXOR

A seekable (random-access) XSALSA20 xor stream.

npm install raxor

Usage

const RAXOR = require('raxor')
 
// nonce and key should be buffers of the ... nonce and key
const r = new RAXOR(nonce, key)
 
r.seek(10000) // seek to byte offset 10k
r.update(out, input) // xor the input buffer as if it was as this offset
 
r.final() // destroy the instance

License

MIT

/raxor/

    Package Sidebar

    Install

    npm i raxor

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    4.16 kB

    Total Files

    5

    Last publish

    Collaborators

    • mafintosh