#sha-1 #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

#386 in Cryptography

Download history 403818/week @ 2024-02-26 388707/week @ 2024-03-04 383080/week @ 2024-03-11 392499/week @ 2024-03-18 380151/week @ 2024-03-25 383859/week @ 2024-04-01 375166/week @ 2024-04-08 387832/week @ 2024-04-15 365470/week @ 2024-04-22 323696/week @ 2024-04-29 340204/week @ 2024-05-06 351258/week @ 2024-05-13 353430/week @ 2024-05-20 340686/week @ 2024-05-27 370803/week @ 2024-06-03 338575/week @ 2024-06-10

1,423,459 downloads per month
Used in 1,423 crates (36 directly)


726 lines


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.