IF Commons GitHub

Crypto

Quality: 53 tests: 53 passed, 0 failed, 0 skipped, 6 of 9 requirements proved, 0 open issues, 0 open tickets. The tests and issues of the library

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

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.

Titles, headings, exports, tables, columns and requirements. Esc closes.