Package Exports
- xsalsa20-universal
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (xsalsa20-universal) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
xsalsa20-universal
xsalsa20 instance that works in node and in the browser
npm install xsalsa20-universal
Usage
const XSalsa20 = require('xsalsa20-universal')
const x = new XSalsa20(nonce, key)
x.update(output1, input1)
x.update(output2, input2)
x.update(output3, input3)
x.final()
License
MIT