Crates.io | nilsimsa |
lib.rs | nilsimsa |
version | 0.2.0 |
source | src |
created_at | 2020-10-26 22:21:47.170956 |
updated_at | 2020-10-30 11:56:06.438417 |
description | Implementation of the Nilsimsa locality-sensitive hashing algorithm. |
homepage | |
repository | https://github.com/Spanfile/nilsimsa |
max_upload_size | |
id | 305766 |
size | 17,474 |
Implementation of the Nilsimsa locality-sensitive hashing algorithm.
Compared to "traditional" hash functions (cryptographic or not), a small modification to the input does not substantially change the resulting hash. This crate contains the Nilsimsa utility to calculate Nilsimsa hash digests, as well as a compare
function for given digests.
let mut hasher = Nilsimsa::new();
hasher.update("input string");
hasher.update("more strings");
let digest = hasher.digest();