Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

xchacha20-js

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xchacha20-js - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

.travis.yml

2

package.json
{
"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
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc