@rabbit-company/xchacha20@2.3.0Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
Works with
•JSR Score100%•This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers




Publisheda year ago (2.3.0)
XChaCha20 encryption
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);
Built and signed on
GitHub Actions
Add Package
deno add jsr:@rabbit-company/xchacha20
Import symbol
import * as xchacha__ from "@rabbit-company/xchacha20";
Import directly with a jsr specifier
import * as xchacha__ from "jsr:@rabbit-company/xchacha20";
Add Package
pnpm i jsr:@rabbit-company/xchacha20
pnpm dlx jsr add @rabbit-company/xchacha20
Import symbol
import * as xchacha__ from "@rabbit-company/xchacha20";
Add Package
yarn add jsr:@rabbit-company/xchacha20
yarn dlx jsr add @rabbit-company/xchacha20
Import symbol
import * as xchacha__ from "@rabbit-company/xchacha20";
Add Package
vlt install jsr:@rabbit-company/xchacha20
Import symbol
import * as xchacha__ from "@rabbit-company/xchacha20";
Add Package
npx jsr add @rabbit-company/xchacha20
Import symbol
import * as xchacha__ from "@rabbit-company/xchacha20";
Add Package
bunx jsr add @rabbit-company/xchacha20
Import symbol
import * as xchacha__ from "@rabbit-company/xchacha20";