Skip to main content
Home

Built and signed on GitHub Actions

Works with
This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score100%
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

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@rabbit-company/xchacha20

Import symbol

import * as xchacha__ from "@rabbit-company/xchacha20";
or

Import directly with a jsr specifier

import * as xchacha__ from "jsr:@rabbit-company/xchacha20";

Add Package

pnpm i jsr:@rabbit-company/xchacha20
or (using pnpm 10.8 or older)
pnpm dlx jsr add @rabbit-company/xchacha20

Import symbol

import * as xchacha__ from "@rabbit-company/xchacha20";

Add Package

yarn add jsr:@rabbit-company/xchacha20
or (using Yarn 4.8 or older)
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";