xchacha20-js
Advanced tools
Comparing version 0.2.0 to 0.2.1
{ | ||
"name": "xchacha20-js", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Javascript implementations of ChaCha20, HChaCha20, and XChaCha20", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -9,2 +9,10 @@ # XChaCha20 (JavaScript) | ||
# Important Security Warning | ||
This library provides [unauthenticated encryption](https://tonyarcieri.com/all-the-crypto-code-youve-ever-written-is-probably-broken). | ||
**You shouldn't use it directly.** It's meant to be a building block for other, | ||
high-level protocols. | ||
**Use [sodium-native](https://github.com/mafintosh/sodium-native) instead!** | ||
## Installing this Library | ||
@@ -29,2 +37,4 @@ | ||
let plaintext = xcha20.decrypt(ciphertext, nonce, key, blockCounter); | ||
``` | ||
console.log(plaintext.toString() === message); // true | ||
``` |
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
33918
10
39