Crate k_anon_hash[−][src]
Expand description
Provides a wrapper around the sha2
crate for K-Anonymous SHA256
Usage:
use k_anon_hash::hash::KAnonHash; let data = String::from("remember to drink water uwu"); let hash = KAnonHash::calculate_string_hash(&data, 3); println!("K-Anonymous hash: {}", hash.k_anon());