@qnsp/kms-client
v0.2.3
Published
KMS client for QNSP key management service. Post-quantum key generation, rotation, and cryptographic operations.
Downloads
276
Maintainers
Readme
@qnsp/kms-client
KMS client for QNSP key management service. Post-quantum key generation, rotation, and cryptographic operations.
Part of the Quantum-Native Security Platform (QNSP).
Installation
pnpm add @qnsp/kms-clientQuick Start
import { HttpKmsServiceClient } from "@qnsp/kms-client";
const kms = new HttpKmsServiceClient(
"https://api.qnsp.cuilabs.io",
"YOUR_API_KEY",
);
const wrapped = await kms.wrapKey({
tenantId: "your-tenant-id",
dataKey: btoa("my-data-encryption-key"),
keyId: "your-kms-key-id",
});
const unwrapped = await kms.unwrapKey({
tenantId: "your-tenant-id",
wrappedKey: wrapped.wrappedKey,
keyId: wrapped.keyId,
});Documentation
Requirements
- Node.js >= 24.12.0 (
enginesinpackage.json; QNSP monorepo baseline) - A QNSP account and API key — sign up free with GitHub, Google, or email
