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

#2869 in Cryptography

Download history 30540/week @ 2026-01-24 37906/week @ 2026-01-31 40251/week @ 2026-02-07 35175/week @ 2026-02-14 39325/week @ 2026-02-21 55009/week @ 2026-02-28 67259/week @ 2026-03-07 56426/week @ 2026-03-14 59063/week @ 2026-03-21 55175/week @ 2026-03-28 50646/week @ 2026-04-04 54714/week @ 2026-04-11 47535/week @ 2026-04-18 55410/week @ 2026-04-25 52065/week @ 2026-05-02 127991/week @ 2026-05-09

293,056 downloads per month
Used in 252 crates (51 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

~520–700KB
~18K SLoC