Decision Workspace
hmac-sha256 vs hmac-sha512 vs sha256-rs
Side-by-side comparison of Rust crates
70
hmac-sha256
stablev1.1.14
A small, self-contained SHA256, HMAC-SHA256, and HKDF-SHA256 implementation
67
hmac-sha512
stablev1.1.12
A small, self-contained SHA512, HMAC-SHA512, HKDF-SHA512, SHA384, HMAC-SHA384, and HKDF-SHA384 implementation
53
sha256-rs
growingv1.0.3
Implementation of the SHA256 hash made using Rust
Core Metrics
| hmac-sha256 | hmac-sha512 | sha256-rs | |
|---|---|---|---|
| Health Score | 70 | 67 | 53 |
| Total Downloads | 15.7M | 18.4M | 10.6K |
| 30d Downloads | 1.2M | 539.2K | 154 |
| Dependents | 918 | 209 | 33 |
| Releases | 24 | 22 | 5 |
| Last Updated | 42d ago | 42d ago | 146d ago |
| Age | 6y 11m | 5y 11m | 2y 11m |
Health Breakdown
hmac-sha256
Maintenance
15
Quality
23
Community
14
Popularity
8
Documentation
10
hmac-sha512
Maintenance
15
Quality
23
Community
12
Popularity
8
Documentation
9
sha256-rs
Maintenance
9
Quality
21
Community
9
Popularity
5
Documentation
9
Technical Details
| hmac-sha256 | hmac-sha512 | sha256-rs | |
|---|---|---|---|
| Version | 1.1.14 | 1.1.12 | 1.0.3 |
| Stable (≥1.0) | ✓ Yes | ✓ Yes | ✓ Yes |
| License | ISC | ISC | GPL-3.0 |
| Dependencies | 3 | 3 | 0 |
| Crate Size | 11KB | 13KB | 16KB |
| Features | 6 | 7 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2018 | 2018 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •hmac-sha256 leads with a health score of 70/100, but none of the options score above 80.
- •hmac-sha512 has the most downloads (18.4M), suggesting wider adoption.
- •hmac-sha256 is depended on by 918 crates — strongest ecosystem trust.