2 releases

0.1.1 Oct 11, 2021
0.1.0 Oct 11, 2021

#1162 in Cryptography

Download history 26/week @ 2024-11-15 42/week @ 2024-11-22 53/week @ 2024-11-29 82/week @ 2024-12-06 108/week @ 2024-12-13 40/week @ 2024-12-20 13/week @ 2024-12-27 40/week @ 2025-01-03 92/week @ 2025-01-10 87/week @ 2025-01-17 55/week @ 2025-01-24 69/week @ 2025-01-31 93/week @ 2025-02-07 69/week @ 2025-02-14 87/week @ 2025-02-21 55/week @ 2025-02-28

326 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