Skip to main content

hash_bytes/
hash_bytes.rs

1use hashjunkie::{Algorithm, hash_bytes};
2
3fn main() {
4    let result = hash_bytes(b"hello", &[Algorithm::Blake3, Algorithm::Sha256]);
5
6    for (algorithm, digest) in &result {
7        println!("{algorithm}: {}", digest.standard());
8    }
9}