#sha-1 #hash #free #legacy #due #dependency-free

no-std sha1_smol

Minimal dependency-free implementation of SHA1 for Rust

2 stable releases

1.0.1 Jul 21, 2024
1.0.0 Jan 16, 2022

#102 in Cryptography

Download history 408665/week @ 2024-07-22 408244/week @ 2024-07-29 382910/week @ 2024-08-05 404817/week @ 2024-08-12 395761/week @ 2024-08-19 368296/week @ 2024-08-26 369570/week @ 2024-09-02 402228/week @ 2024-09-09 385440/week @ 2024-09-16 427136/week @ 2024-09-23 441826/week @ 2024-09-30 438844/week @ 2024-10-07 455563/week @ 2024-10-14 463901/week @ 2024-10-21 467567/week @ 2024-10-28 473585/week @ 2024-11-04

1,888,133 downloads per month
Used in 1,488 crates (38 directly)

BSD-3-Clause

31KB
714 lines

sha1-smol

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

~165KB