Crates.io | mash-rs |
lib.rs | mash-rs |
version | 0.0.1 |
source | src |
created_at | 2024-08-24 16:06:58.184616 |
updated_at | 2024-08-24 16:06:58.184616 |
description | Hashing Algorithms |
homepage | |
repository | https://github.com/piot/mash-rs |
max_upload_size | |
id | 1350391 |
size | 8,454 |
This crate provides a collection of hashing functions for Rust, including Murmur3, a fast and efficient hash algorithm.
To use this crate in your Rust project, add it to your Cargo.toml
:
[dependencies]
mash-rs = "0.0.1"
use mash_rs::murmur3_32;
fn main() {
let data = b"hello world";
let seed = 42; // Arbitrary seed value
let hash = murmur3_32(data, seed);
println!("Murmur3 hash value: {:#x}", hash);
}
The murmur3_32
function computes a 32-bit hash value for the given data using the Murmur3 hash algorithm.
In addition to Murmur3, this library provides other hashing functions. Check the documentation for more details on available algorithms and how to use them.
This is licensed under the MIT License. See the LICENSE file for more details.