Crates.io | jenkins_hash |
lib.rs | jenkins_hash |
version | 0.2.0 |
source | src |
created_at | 2023-02-15 22:55:05.3148 |
updated_at | 2023-02-18 09:26:10.755794 |
description | Native rust implementation of the hash algorithms from Bob Jenkins. |
homepage | https://github.com/offsetting/jenkins_hash.git |
repository | https://github.com/offsetting/jenkins_hash.git |
max_upload_size | |
id | 786361 |
size | 17,703 |
Native rust implementation of the hash algorithms from Bob Jenkins.
see: www.burtleburtle.net/bob/hash/doobs.html
Do NOT use for cryptographic purposes.
use jenkins_hash::lookup2;
fn main() {
let data = "Hello, this is a test string. It is just used to be hashed.".as_bytes();
let initial = 0x3875682; // start value - like a seed
println!("{}", lookup2(&data[..], initial));
}