Skip to content

hazae41/chacha20poly1305

Repository files navigation

ChaCha20Poly1305

ChaCha20Poly1305 adapter for WebAssembly and JS implementations

npm install @hazae41/chacha20poly1305
deno install jsr:@hazae41/chacha20poly1305

📦 NPM📦 JSR

Features

Current features

  • 100% TypeScript and ESM
  • No external dependencies

Usage

WebAssembly

npm i @hazae41/chacha20poly1305-wasm
import { chaCha20Poly1305 } from "@hazae41/chacha20poly1305"
import { chaCha20Poly1305Wasm } from "@hazae41/chacha20poly1305-wasm"

await chaCha20Poly1305Wasm.load() // or chaCha20Poly1305Wasm.loadSync() 

chaCha20Poly1305.set(chaCha20Poly1305.fromWasm(chaCha20Poly1305Wasm))

Noble (JavaScript)

npm i @noble/ciphers
import { chaCha20Poly1305 } from "@hazae41/chacha20poly1305"
import * as chaChaNoble from "@noble/ciphers/chacha"

chaCha20Poly1305.set(chaCha20Poly1305.fromNoble(chaChaNoble))

About

ChaCha20Poly1305 adapter for WebAssembly and JS implementations

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

 
 
 

Contributors