rs-hash-sha1 0.1.0
SHA-1 hash with a streaming API, std only (legacy checksums, not for security)
Install
cargo add rs-hash-sha1 --registry rupm
In Ruststudio: Packages, search for rs-hash-sha1, Install.
Owner: Rust Studio. Licence: MIT OR Apache-2.0. Total downloads: 0. Published 2026-11-23.
Versions
- 0.1.0 2026-11-23
README
# rs-hash-sha1 SHA-1 hash with a streaming API, std only (legacy checksums, not for security) Add it with `rupm add rs-hash-sha1` (or `cargo add rs-hash-sha1 --registry rupm`). SHA-1 is broken for collision resistance. Use it only for legacy formats (git object ids, old protocols), never for security-critical use. ```rust assert_eq!(rs_hash_sha1::sha1_hex(b"abc"), "a9993e364706816aba3e25717850c26c9cd0d89d"); let mut h = rs_hash_sha1::Sha1::new(); h.update(b"a"); h.update(b"bc"); assert_eq!(rs_hash_sha1::to_hex(&h.finalize()), "a9993e364706816aba3e25717850c26c9cd0d89d"); ```