Documentation · v0.0.41

Crypto Service developer documentation

API references for all 18 npm packages, generated by TypeDoc from source, with a quick start and the standards each algorithm implements. The packages share one version and are released together.

Suite version 0.0.41 · 18 npm packages in lockstep · TypeDoc API reference · Apache-2.0 OR MIT

Quick start

ML-KEM-768 in three calls.

Install @sebastienrousseau/crypto-lib on Node.js 22 or later, then generate a key pair, encapsulate a shared secret and recover it. Keys, ciphertexts and secrets are hex strings.

crypto-lib API reference

quickstart.ts
# 1. Install (Node.js 22 or later)
pnpm add @sebastienrousseau/crypto-lib

// 2. ML-KEM-768 key encapsulation (FIPS 203 algorithm; not a validated module)
import { mlKemKeygen, mlKemEncapsulate, mlKemDecapsulate } from "@sebastienrousseau/crypto-lib";

const { publicKey, secretKey } = mlKemKeygen(768);
const { ciphertext, sharedSecret } = mlKemEncapsulate(768, publicKey);
const received = mlKemDecapsulate(768, secretKey, ciphertext);
// received.sharedSecret === sharedSecret

Project facts

API reference

The 18 packages

Every package is published to npm as @sebastienrousseau/<name> at the same version. Each reference below is generated by TypeDoc from the package’s source.

Primitives and runtimes

Service and clients

Keys and data

Front end

Tooling and AI

Calling crypto-server from another language?

Thin, async-first SDKs for Java, Rust, Go, C++, .NET and Python wrap the same REST API. They live in their own repositories and registries.

Language SDKs