Function chksum_hash_sha2_384::hash
source · pub fn hash(data: impl AsRef<[u8]>) -> Digest
Expand description
Computes the hash of the given input.
§Example
use chksum_hash_sha2_384 as sha2_384;
let digest = sha2_384::hash("data");
assert_eq!(
digest.to_hex_lowercase(),
"2039e0f0b92728499fb88e23ebc3cfd0554b28400b0ed7b753055c88b5865c3c2aa72c6a1a9ae0a755d87900a4a6ff41"
);