#sha-256 #sha-2 #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

#1930 in Cryptography

Download history 3/week @ 2024-07-28 4/week @ 2024-09-22

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

~495KB
~11K SLoC