Registry / crypto / md5
library0.8.0rscratesunverified

The package provides the MD5 hash function.

# Cargo.toml [dependencies] md5 = "0.8.0"
INSTALL
IMPORT
SIG · MD5
M
md5
cryptorustv0.8.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.

Md5
use md5::{Md5, Digest};

Compute MD5 hash of a string

use md5::{Md5, Digest}; let mut hasher = Md5::new(); hasher.update(b"hello world"); let result = hasher.finalize(); println!("{:x}", result);
Debug
Known issues
gotchaMD5 is cryptographically broken and unsuitable for security purposes
fix
Use SHA-2 or SHA-3 family for security-sensitive hashing
affects: >=0.0.0
Upgrade
Version history
0.8.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
md5 — cargo add md5 · libregistry