XChaCha20 implementation in JavaScript (ES6).
This library will auto generate random nonce and append it to the encrypted message.
npm i --save @rabbit-company/xchacha20
import XChaCha20 from "@rabbit-company/xchacha20";
XChaCha20.encrypt(message, secretKey);
XChaCha20.decrypt(message, secretKey);