pub fn sha256(data: &[u8]) -> [u8; 32]Available on (crate features
hash-blake3 or hash-sha2) and crate feature hash-sha2 only.Expand description
Compute a 32-byte SHA-256 digest of data.
ยงExample
use crypt_io::hash;
let d = hash::sha256(b"abc");
assert_eq!(d.len(), 32);