Decision Workspace
sha2_hasher vs sha2raw vs hmac-sha256
Side-by-side comparison of Rust crates
49
sha2_hasher
experimentalv0.3.2
A trait extension for hashing files with SHA-2 algorithms
71
sha2raw
stablev14.1.0
SHA-2 hash function
68
hmac-sha256
stablev1.1.14
A small, self-contained SHA256, HMAC-SHA256, and HKDF-SHA256 implementation
Core Metrics
| sha2_hasher | sha2raw | hmac-sha256 | |
|---|---|---|---|
| Health Score | 49 | 71 | 68 |
| Total Downloads | 187 | 523.1K | 18.1M |
| 30d Downloads | 0 | 27.8K | 1.3M |
| Dependents | 4 | 107 | 999 |
| Releases | 3 | 31 | 24 |
| Last Updated | 128d ago | 77d ago | 101d ago |
| Age | 4m | 6y | 7y 1m |
Health Breakdown
sha2_hasher
Maintenance
13
Quality
15
Community
5
Popularity
3
Documentation
13
sha2raw
Maintenance
15
Quality
20
Community
17
Popularity
7
Documentation
12
hmac-sha256
Maintenance
13
Quality
23
Community
14
Popularity
8
Documentation
10
Technical Details
| sha2_hasher | sha2raw | hmac-sha256 | |
|---|---|---|---|
| Version | 0.3.2 | 14.1.0 | 1.1.14 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✓ Yes |
| License | MIT | MIT OR Apache-2.0 | ISC |
| Dependencies | 4 | 10 | 3 |
| Crate Size | 7KB | 11KB | 11KB |
| Features | 3 | 2 | 6 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2024 | 2018 | 2021 |
| MSRV | — | — | — |
| Owners | 1 | 2 (team) | 1 |
Links
Quick Verdict
- •sha2raw leads with a health score of 71/100, but none of the options score above 80.
- •hmac-sha256 has the most downloads (18.1M), suggesting wider adoption.
- •hmac-sha256 is depended on by 999 crates — strongest ecosystem trust.
- •sha2_hasher is pre-1.0 — API may change.