jenkins_hash 0.2.0

Native rust implementation of the hash algorithms from Bob Jenkins.
Documentation
1
2
3
4
5
6
7
8
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));
}