#sha1

sha1_smol

Minimal dependency free implementation of SHA1 for Rust

1 stable release

1.0.0 Jan 16, 2022

#583 in Cryptography

Download history 103411/week @ 2022-08-08 111670/week @ 2022-08-15 108962/week @ 2022-08-22 119007/week @ 2022-08-29 109814/week @ 2022-09-05 110636/week @ 2022-09-12 110789/week @ 2022-09-19 115839/week @ 2022-09-26 111299/week @ 2022-10-03 114289/week @ 2022-10-10 123742/week @ 2022-10-17 120987/week @ 2022-10-24 120805/week @ 2022-10-31 120380/week @ 2022-11-07 117617/week @ 2022-11-14 93887/week @ 2022-11-21

459,033 downloads per month
Used in 1,252 crates (11 directly)

BSD-3-Clause

31KB
726 lines

sha1-smol

Build Status Crates.io License rustc 1.31.0 Documentation

Minimal and dependency free implementation of SHA1 for Rust.

SHA1 is not exactly a good choice for crypto hashes these days but unfortunately SHA1 continues to be needed for a handful of situations due to legacy functionality. If you have the need for a SHA1 implementation that does not pull in large dependency chains you might want to consider this crate.

In all other cases use the new sha1 crate by the RustCrypto project instead.

sha1 crate

This crate used to be published as sha1 but in recent years a large ecosystem of hash libraries was built around RustCrypto so the crate name was given to that project instead. Versions newer than 0.6 of sha1.

This is largely based on the hash code in crypto-rs by Koka El Kiwi.

Dependencies

~64KB