| Crates.io | nilsimsa |
| lib.rs | nilsimsa |
| version | 0.2.1 |
| created_at | 2020-10-26 22:21:47.170956+00 |
| updated_at | 2025-08-12 03:43:58.992485+00 |
| description | Implementation of the Nilsimsa locality-sensitive hashing algorithm. |
| homepage | |
| repository | https://github.com/Spanfile/nilsimsa |
| max_upload_size | |
| id | 305766 |
| size | 18,401 |
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();