No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Daniel Baumann 23ce7fce74
Releasing fastforward version 0.11.0-2~ffwd13+u1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2026-08-04 18:51:18 +02:00
benches Adding upstream version 0.11.0. 2026-08-04 18:50:47 +02:00
debian Releasing fastforward version 0.11.0-2~ffwd13+u1. 2026-08-04 18:51:18 +02:00
src Adding upstream version 0.11.0. 2026-08-04 18:50:47 +02:00
tests Adding upstream version 0.11.0. 2026-08-04 18:50:47 +02:00
.cargo_vcs_info.json Adding upstream version 0.11.0. 2026-08-04 18:50:47 +02:00
Cargo.lock Adding upstream version 0.11.0. 2026-08-04 18:50:47 +02:00
Cargo.toml Adding upstream version 0.11.0. 2026-08-04 18:50:47 +02:00
Cargo.toml.orig Adding upstream version 0.11.0. 2026-08-04 18:50:47 +02:00
CHANGELOG.md Adding upstream version 0.11.0. 2026-08-04 18:50:47 +02:00
LICENSE-APACHE Adding upstream version 0.11.0. 2026-08-04 18:50:47 +02:00
LICENSE-MIT Adding upstream version 0.11.0. 2026-08-04 18:50:47 +02:00
README.md Adding upstream version 0.11.0. 2026-08-04 18:50:47 +02:00

RustCrypto: MD5

crate Docs Apache2/MIT licensed Rust Version Project Chat Build Status

Pure Rust implementation of the MD5 cryptographic hash algorithm.

⚠️ Security Warning

This crate is provided for the purposes of legacy interoperability with protocols and systems which mandate the use of MD5.

However, MD5 is cryptographically broken and unsuitable for further use.

Collision attacks against MD5 are both practical and trivial, and theoretical attacks against MD5's preimage resistance have been found.

RFC 6151 advises no new IETF protocols can be designed MD5-based constructions, including HMAC-MD5.

Examples

use md5::{Md5, Digest};
use hex_literal::hex;

let mut hasher = Md5::new();
hasher.update(b"hello world");
let hash = hasher.finalize();

assert_eq!(hash, hex!("5eb63bbbe01eeed093cb22bb8f5acdc3"));

See the digest crate docs for additional examples.

License

The crate is licensed under either of:

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.