Pelago
stdHashes and checksums

Hashes and checksums

Streaming hashes behind one interface: secure, fast and legacy.

Streaming hashes behind one interface: secure, fast and legacy.

ModulePurpose
std.hashThe streaming hash interface, hex helpers and a constant-time compare.
std.sha2SHA-224, SHA-256, SHA-384, SHA-512 and the SHA-512/t variants.
std.sha3SHA-3, SHAKE and the original Keccak.
std.blake2BLAKE2b and BLAKE2s, with keys, salts and personalisation.
std.blake3BLAKE3: hash, keyed hash, key derivation and any-length output.
std.ripemdRIPEMD-160, and RIPEMD-128, 256 and 320.
std.sm3SM3, the Chinese national standard hash.
std.fasthashFNV, xxHash and SipHash for hash tables. Not for security.
std.legacyMD5, SHA-1 and MD4, for old formats only. They are broken.
std.checksumCRC-8 to CRC-64 and Adler-32.