jenkins_hash

Crates.iojenkins_hash
lib.rsjenkins_hash
version0.2.0
sourcesrc
created_at2023-02-15 22:55:05.3148
updated_at2023-02-18 09:26:10.755794
descriptionNative rust implementation of the hash algorithms from Bob Jenkins.
homepagehttps://github.com/offsetting/jenkins_hash.git
repositoryhttps://github.com/offsetting/jenkins_hash.git
max_upload_size
id786361
size17,703
Marcel (MarcelCoding)

documentation

README

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));
}
Commit count: 2

cargo fmt