@rabbit-company/xchacha20

1.1.0 • Public • Published

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);

Package Sidebar

Install

npm i @rabbit-company/xchacha20

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

9.82 kB

Total Files

4

Last publish

Collaborators

  • ziga.zajc007