TypeScript SDK for the Crypto Service Suite v2 API.
Zero-dependency, fetch-based typed client for all cryptographic operations.
import { CryptoClient } from '@sebastienrousseau/crypto-sdk';const client = new CryptoClient({ baseUrl: 'http://localhost:3000' });const { data } = await client.hash({ algorithm: 'sha256', data: 'hello' });console.log(data.digest); Copy
import { CryptoClient } from '@sebastienrousseau/crypto-sdk';const client = new CryptoClient({ baseUrl: 'http://localhost:3000' });const { data } = await client.hash({ algorithm: 'sha256', data: 'hello' });console.log(data.digest);
Base URL of the crypto server (e.g., "http://localhost:3000").
Optional
API key for x-api-key header authentication.
JWT Bearer token for Authorization header.
Custom fetch implementation (defaults to global fetch).
Remarks
TypeScript SDK for the Crypto Service Suite v2 API.
Zero-dependency, fetch-based typed client for all cryptographic operations.
Example