Crates.io | quickxorhash |
lib.rs | quickxorhash |
version | 0.1.0 |
source | src |
created_at | 2023-04-08 14:33:16.130341 |
updated_at | 2023-04-08 14:33:16.130341 |
description | Fast implementation of QuickXorHash in Rust. |
homepage | https://github.com/guyru/quickxorhash |
repository | https://github.com/guyru/quickxorhash |
max_upload_size | |
id | 833614 |
size | 27,591 |
Fast implementation of QuickXorHash in pure Rust.
A quick, simple non-cryptographic hash algorithm that works by XORing the bytes in a circular-shifting fashion.
use quickxorhash::QuickXorHash;
//! let mut qx = QuickXorHash::new();
//! qx.update(b"hello world");
//! assert_eq!(qx.finalize(), [104, 40, 3, 27, 216, 240, 6, 16, 220, 225, 13, 114, 107, 3, 25, 0, 0, 0, 0, 0]);
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.