Packages / rupm

rs-hash-md5 0.1.0

MD5 hash with a streaming API, std only (legacy checksums, not for security)

Install

cargo add rs-hash-md5 --registry rupm

In Ruststudio: Packages, search for rs-hash-md5, Install.

Owner: Rust Studio. Licence: MIT OR Apache-2.0. Total downloads: 0. Published 2026-11-23.

Versions

README

# rs-hash-md5

MD5 hash with a streaming API, std only (legacy checksums, not for security)

Add it with `rupm add rs-hash-md5` (or `cargo add rs-hash-md5 --registry rupm`).

MD5 is broken for collision resistance. Use it only for legacy checksums and file identity checks, never for security-critical use.

```rust
assert_eq!(rs_hash_md5::md5_hex(b"abc"), "900150983cd24fb0d6963f7d28e17f72");
let mut h = rs_hash_md5::Md5::new();
h.update(b"a");
h.update(b"bc");
assert_eq!(rs_hash_md5::to_hex(&h.finalize()), "900150983cd24fb0d6963f7d28e17f72");
```