#sha-2 #sha-256 #hash #anon #k-anonymous

k-anon-hash

A simple wrapper around the sha2 crate for K-Anonymous SHA256

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

#1517 in Cryptography

AGPL-3.0-only

15KB
87 lines

k-anon-hash-rs

Coverage Pipeline
coverage report pipeline status

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

~475KB
~11K SLoC