2 releases
0.1.1 | Jul 5, 2019 |
---|---|
0.1.0 | Jul 5, 2019 |
#1420 in Cryptography
Used in 2 crates
(via assembly-data)
12KB
58 lines
hsieh-hash
This crate contains the Hsieh Hash
or SuperFastHash
function
created by Paul Hsieh and presented at http://www.azillionmonkeys.com/qed/hash.html
use hsieh_hash::digest;
let hash = digest("Hello World!".as_bytes());
assert_eq!(hash, 1774740540);
The hash value is initialized with the lenght of the input, so the algorithm cannot be used incrementally.
lib.rs
:
This crate contains the Hsieh Hash
or SuperFastHash
function
created by Paul Hsieh and presented at http://www.azillionmonkeys.com/qed/hash.html
use hsieh_hash::digest;
let hash = digest("Hello World!".as_bytes());
assert_eq!(hash, 1774740540);
The hash value is initialized with the lenght of the input, so the algorithm cannot be used incrementally.