Registry / crypto / crypto-hash

crypto-hash

JSON →
library0.3.4rscratesunverified

A wrapper for OS-level cryptographic hash functions.

# Cargo.toml [dependencies] crypto-hash = "0.3.4"
INSTALL
IMPORT
SIG · CRYPTO-HASH
C
crypto-hash
cryptorustv0.3.4
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.

Algorithm
use crypto_hash::Algorithm;

Compute SHA-256 hash of a byte slice.

use crypto_hash::{Algorithm, hex_digest}; fn main() { let digest = hex_digest(Algorithm::SHA256, b"hello"); println!("{}", digest); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.4latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
Resources
crypto-hash — cargo add crypto-hash · libregistry