Registry / crypto / whirlpool

whirlpool

JSON →
library0.11.0rscratesunverified

Implements the Whirlpool cryptographic hash function.

# Cargo.toml [dependencies] whirlpool = "0.11.0"
INSTALL
IMPORT
SIG · WHIRLPOOL
W
whirlpool
cryptorustv0.11.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.

Whirlpool
✓ use whirlpool::Whirlpool;

Compute the Whirlpool hash of a byte string.

use whirlpool::Whirlpool; use digest::Digest; fn main() { let mut hasher = Whirlpool::new(); hasher.update(b"hello world"); let result = hasher.finalize(); println!("Hash: {:x}", result); }
Debug
Known issues
gotchaThe Whirlpool hash is not widely standardized and may be considered obsolete; prefer SHA-2 or SHA-3 for new applications.
fix
Use a more modern hash function like sha2 or sha3 crate.
affects: *
Upgrade
Version history
0.11.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
22 hits · last 30 days
node
18
Resources
whirlpool — cargo add whirlpool · libregistry