#hashing #jenkins #hash #algorithm #bob #native #lookup2

jenkins_hash

Native rust implementation of the hash algorithms from Bob Jenkins

2 unstable releases

0.2.0 Feb 18, 2023
0.1.0 Feb 15, 2023

#2402 in Algorithms

32 downloads per month

CC0 license

10KB
122 lines

jenkins_hash

Native rust implementation of the hash algorithms from Bob Jenkins.

Lookup2

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));
}

No runtime deps