Registry / utility / wyhash

wyhash

JSON →
library0.6.0rscratesunverified

Rust implementation of the WyHash fast portable non-cryptographic hashing algorithm and random number generator.

# Cargo.toml [dependencies] wyhash = "0.6.0"
INSTALL
IMPORT
SIG · WYHASH
W
wyhash
utilityrustv0.6.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

WyHash
✓ use wyhash::WyHash;

Hash a byte slice using WyHash.

use wyhash::WyHash; use std::hash::Hasher; fn main() { let mut hasher = WyHash::default(); hasher.write(b"hello"); println!("Hash: {}", hasher.finish()); }
Debug
Known issues
gotchaNot cryptographically secure; do not use for security purposes.
fix
Use a cryptographic hash like SHA-256 for security-sensitive applications.
affects: *
Upgrade
Version history
0.6.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
25 hits · last 30 days
node
22
Resources
wyhash — cargo add wyhash · libregistry