hypercore-xsalsa20-onwrite-hook
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -45,3 +45,3 @@ const xsalsa20 = require('xsalsa20') | ||
const key = Buffer.from(opts.key).slice(0, KEY_BYTES) | ||
const xor = xsalsa20(nonce, key) | ||
const xor = opts.xor || xsalsa20(nonce, key) | ||
xor.update(data, data) | ||
@@ -48,0 +48,0 @@ done(null) |
{ | ||
"name": "hypercore-xsalsa20-onwrite-hook", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "A write hook to decrypt data using a XSalsa20 cipher into a hypercore storage when replicating from peers", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6509