Crypto
Crypto, the digests, signatures and envelopes of Intellectual Frontiers Commons, in pure code on Web Crypto with no outside package (its specification 0001-crypto): SHA-256 as a branded Sha256, MD5 for the protocols that still ask for it (as md5), SHA-512 crypt, UUIDs (as uuid), AWS Signature Version 4 (as sigv4), CMS encrypted content (as cms), in-toto statements in DSSE envelopes (as dsse), COSE keys (as cose) and WebAuthn for a relying party (as webauthn). It depends on core and formats, names no host global and runs wherever ECMAScript and Web Crypto do: Bun, Node 26, a browser, a Worker.
Entry points
src/mod.tssrc/cms.tssrc/cose.tssrc/crypt.tssrc/dsse.tssrc/md5.tssrc/sha256.tssrc/sigv4.tssrc/uuid.tssrc/webauthn.ts
Modules
Examples
import { sha256 } from "@intellectual-frontiers/crypto";
const sum = await sha256("abc");
sum; // "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad"Limits
What the modules of this area do not do, or do only in part, as each module's @limits says.