18 releases (10 breaking)

Uses new Rust 2024

0.11.0 Mar 27, 2026
0.11.0-rc.1 Jan 24, 2026
0.10.2 Oct 5, 2022
0.10.1 Feb 17, 2022
0.3.1 Nov 17, 2016

#2838 in Cryptography

Download history 108291/week @ 2026-08-08 119755/week @ 2026-08-15 135370/week @ 2026-08-22 114256/week @ 2026-08-29 121061/week @ 2026-09-05 114153/week @ 2026-09-12 93496/week @ 2026-09-19 130227/week @ 2026-09-26 134942/week @ 2026-10-03 147367/week @ 2026-10-10 160091/week @ 2026-10-17 174306/week @ 2026-10-24 180290/week @ 2026-10-31 189096/week @ 2026-11-07 209997/week @ 2026-11-14 231904/week @ 2026-11-21

838,353 downloads per month
Used in 455 crates (92 directly)

MIT/Apache

11KB
177 lines

RustCrypto: MD4

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

Pure Rust implementation of the MD4 cryptographic hash algorithm.

Examples

use md4::{Md4, Digest};
use hex_literal::hex;

// create a Md4 hasher instance
let mut hasher = Md4::new();

// process input message
hasher.update(b"hello world");

// acquire hash digest in the form of Array,
// which in this case is equivalent to [u8; 16]
let hash = hasher.finalize();
assert_eq!(hash, hex!("aa010fbc1d14c795d86ef98c95479d17"));

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.

Dependencies

~470–670KB
~17K SLoC