16 releases

Uses new Rust 2024

new 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.1.2 Jan 20, 2017

#2961 in Cryptography

Download history 6934/week @ 2025-12-11 8533/week @ 2025-12-18 4378/week @ 2025-12-25 5517/week @ 2026-01-01 12555/week @ 2026-01-08 6897/week @ 2026-01-15 12792/week @ 2026-01-22 14166/week @ 2026-01-29 15121/week @ 2026-02-05 10123/week @ 2026-02-12 11085/week @ 2026-02-19 15253/week @ 2026-02-26 14920/week @ 2026-03-05 12747/week @ 2026-03-12 19619/week @ 2026-03-19 19722/week @ 2026-03-26

69,091 downloads per month
Used in 39 crates (20 directly)

MIT/Apache

11KB
155 lines

RustCrypto: MD2

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

Pure Rust implementation of the MD2 cryptographic hash algorithm.

Examples

use md2::{Md2, Digest};
use hex_literal::hex;

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

assert_eq!(hash, hex!("d9cce882ee690a5c1ce70beff3a78c77"));

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

~715KB
~18K SLoC