Debian Codegraph @

/

debian rust-md-5 0.11.0-2debian librust-md-5-dev debian librust-md-5+alloc-dev debian librust-md-5+default-dev debian librust-md-5+oid-dev debian librust-md-5+zeroize-dev debian librust-md-5-0-dev debian librust-md-5-0+alloc-dev debian librust-md-5-0+default-dev debian librust-md-5-0+oid-dev debian librust-md-5-0+zeroize-dev debian librust-md-5-0.11-dev debian librust-md-5-0.11+alloc-dev debian librust-md-5-0.11+default-dev debian librust-md-5-0.11+oid-dev debian librust-md-5-0.11+zeroize-dev debian librust-md-5-0.11.0-dev debian librust-md-5-0.11.0+alloc-dev debian librust-md-5-0.11.0+default-dev debian librust-md-5-0.11.0+oid-dev
2 more… debian librust-md-5-0.11.0+zeroize-dev cargo md-5 0.11.0
debianjsonmakefilemarkdownrustrustrust-c-abishelltoml 24 files · 164 symbols
View dependency graph

Depends on

  • dh-cargo (dh-sequence-cargo)
  • rust-cfg-if (librust-cfg-if-1+default-dev)
  • rust-digest (librust-digest-0.11+alloc-dev, librust-digest-0.11+default-dev, librust-digest-0.11+oid-dev, librust-digest-0.11+zeroize-dev)
  • cargo, debhelper-compat, librust-spargebra-dev, libstd-rust-dev, rustc
README (full)

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.

dir benches/
dir debian/
dir src/
dir tests/
file .cargo_vcs_info.json
file CHANGELOG.md
file Cargo.lock
file Cargo.toml
file Cargo.toml.orig
file LICENSE-APACHE
file LICENSE-MIT
file README.md