#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

#1629 in Cryptography

Download history 16/week @ 2024-03-29 2/week @ 2024-04-05

118 downloads per month

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

~480KB
~11K SLoC