#sha1 #free #hash #legacy #due #chains

no-std sha1_smol

Minimal dependency free implementation of SHA1 for Rust

1 stable release

1.0.0 Jan 16, 2022

#363 in Cryptography

Download history 248625/week @ 2023-11-21 272236/week @ 2023-11-28 261762/week @ 2023-12-05 327569/week @ 2023-12-12 242429/week @ 2023-12-19 181977/week @ 2023-12-26 304447/week @ 2024-01-02 330732/week @ 2024-01-09 351105/week @ 2024-01-16 356387/week @ 2024-01-23 413551/week @ 2024-01-30 396016/week @ 2024-02-06 406991/week @ 2024-02-13 397862/week @ 2024-02-20 403706/week @ 2024-02-27 322678/week @ 2024-03-05

1,591,940 downloads per month
Used in 1,392 crates (33 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

~180KB