2 releases

0.1.1 Oct 11, 2021
0.1.0 Oct 11, 2021

#1081 in Cryptography

Download history 126/week @ 2023-11-23 54/week @ 2023-11-30 62/week @ 2023-12-07 89/week @ 2023-12-14 67/week @ 2023-12-21 37/week @ 2023-12-28 57/week @ 2024-01-04 76/week @ 2024-01-11 78/week @ 2024-01-18 67/week @ 2024-01-25 52/week @ 2024-02-01 76/week @ 2024-02-08 98/week @ 2024-02-15 88/week @ 2024-02-22 93/week @ 2024-02-29 75/week @ 2024-03-07

367 downloads per month
Used in 2 crates (via assembly-fdb-core)

LGPL-2.1

12KB
54 lines

sfhash

This crate contains the SuperFastHash (aka Hsieh Hash) function presented at http://www.azillionmonkeys.com/qed/hash.html

use sfhash::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 SuperFastHash (aka Hsieh Hash) function presented at http://www.azillionmonkeys.com/qed/hash.html

use sfhash::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.

No runtime deps