@qnsp/browser-sdk
v0.1.4
Published
Browser-compatible PQC encryption SDK for QNSP. Client-side encryption, signing, and key encapsulation using NIST FIPS 203/204/205 standards via @noble/post-quantum.
Downloads
543
Maintainers
Readme
@qnsp/browser-sdk
Browser-compatible PQC encryption SDK for QNSP. Client-side encryption, signing, and key encapsulation using NIST FIPS 203/204/205 standards via @noble/post-quantum.
Part of the Quantum-Native Security Platform (QNSP).
Installation
pnpm add @qnsp/browser-sdkQuick Start
import { initializePqcProvider, encryptBeforeUpload, generateEncryptionKeyPair } from "@qnsp/browser-sdk";
await initializePqcProvider({ apiKey: "YOUR_API_KEY" });
const { publicKey, privateKey } = await generateEncryptionKeyPair("kyber-768");
const envelope = await encryptBeforeUpload(plaintext, publicKey, "kyber-768");Documentation
Requirements
- A modern browser with WebCrypto support
- Node.js >= 24.12.0 when bundling or running in Node (
enginesinpackage.json) - A QNSP account and API key — sign up free with GitHub, Google, or email
