Skip to main content

Module sha2

Module sha2 

Source
Expand description

The SHA-2 family of hashing functions.

§⚠️ Warning

SHA-2 function are vulnerable to length-extension attacks. Unless mandated, you may prefer BLAKE3 or the (slower) SHA-3 functions.

Structs§

Sha256
SHA-256 hash function (RFC 6234 / FIPS 180-4).
Sha384
SHA-384 hash function (FIPS 180-4).
Sha512
SHA-512 hash function (RFC 6234 / FIPS 180-4).