stdHashes and checksums
Hashes and checksums
Streaming hashes behind one interface: secure, fast and legacy.
Streaming hashes behind one interface: secure, fast and legacy.
| Module | Purpose |
|---|---|
std.hash | The streaming hash interface, hex helpers and a constant-time compare. |
std.sha2 | SHA-224, SHA-256, SHA-384, SHA-512 and the SHA-512/t variants. |
std.sha3 | SHA-3, SHAKE and the original Keccak. |
std.blake2 | BLAKE2b and BLAKE2s, with keys, salts and personalisation. |
std.blake3 | BLAKE3: hash, keyed hash, key derivation and any-length output. |
std.ripemd | RIPEMD-160, and RIPEMD-128, 256 and 320. |
std.sm3 | SM3, the Chinese national standard hash. |
std.fasthash | FNV, xxHash and SipHash for hash tables. Not for security. |
std.legacy | MD5, SHA-1 and MD4, for old formats only. They are broken. |
std.checksum | CRC-8 to CRC-64 and Adler-32. |