sha1-tools 0.1.0
SHA-1 hash with a streaming API, std only (legacy checksums, not for security)
Install
cargo add sha1-tools --registry rupm
In Ruststudio: Packages, search for sha1-tools, Install.
Owner: Rust Studio. Licence: MIT OR Apache-2.0. Total downloads: 0. Published 2026-11-22.
Versions
- 0.1.0 2026-11-22
README
# sha1-tools SHA-1 hash with a streaming API, std only (legacy checksums, not for security) Add it with `rupm add sha1-tools` (or `cargo add sha1-tools --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!(sha1_tools::sha1_hex(b"abc"), "a9993e364706816aba3e25717850c26c9cd0d89d"); let mut h = sha1_tools::Sha1::new(); h.update(b"a"); h.update(b"bc"); assert_eq!(sha1_tools::to_hex(&h.finalize()), "a9993e364706816aba3e25717850c26c9cd0d89d"); ```