@apislash/cryptobox-web
v1.0.0
Published
Quantum-resistant crypto provider for the browser (WebCrypto AES-GCM-256 + ML-KEM-768/1024 hybrid). Framework-agnostic, usable in any web app — published by Apislash.
Downloads
11
Readme
@apislash/cryptobox-web
Quantum-resistant crypto provider for the browser — part of CryptoBox. AES-GCM-256 via WebCrypto (SubtleCrypto) + ML-KEM-768/1024 hybrid. Framework-agnostic, usable in any web app; published by Apislash.
Install
npm install @apislash/cryptobox-webUsage
import { createWebCryptoProvider, createWebKeyProvider } from "@apislash/cryptobox-web";
const crypto = createWebCryptoProvider();
const keys = createWebKeyProvider();
const key = await keys.generateKey();
const envelope = await crypto.encrypt(key, new TextEncoder().encode("hello"));
const plaintext = await crypto.decrypt(key, envelope);Use detectWebCryptoCapabilities() to check runtime support. Interfaces come from @apislash/cryptobox-core.
MIT © Apislash
