JSPM

@rabbit-company/xchacha20

2.3.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q26675F
  • License MIT

XChaCha20 encryption

Package Exports

  • @rabbit-company/xchacha20
  • @rabbit-company/xchacha20/module/xchacha20.js

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 (@rabbit-company/xchacha20) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

XChaCha20-JS

XChaCha20 implementation in JavaScript (ES6).

This library will auto generate random nonce and append it to the encrypted message.

Usage

1. Download library

npm i --save @rabbit-company/xchacha20

2. Import library

import XChaCha20 from "@rabbit-company/xchacha20";

3. Encryption

XChaCha20.encrypt(message, secretKey);

4. Decryption

XChaCha20.decrypt(message, secretKey);