4 releases
0.1.3 | Aug 16, 2021 |
---|---|
0.1.2 | Feb 26, 2021 |
0.1.1 | Feb 24, 2021 |
0.1.0 | Feb 24, 2021 |
#1629 in Cryptography
118 downloads per month
15KB
87 lines
k-anon-hash-rs
Coverage | Pipeline |
---|---|
Provides a wrapper around the sha2
crate for K-Anonymous SHA256.
Usage:
let data = String::from("remember to drink water uwu");
let hash = KAnonHash::calculate_string_hash(&data);
println!("K-Anonymous hash: {}", hash.k_anon());
lib.rs
:
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());
Dependencies
~480KB
~11K SLoC