Decision Workspace
otp-auth vs otp2 vs totp-rs
Side-by-side comparison of Rust crates
38
otp-auth
experimentalv0.1.0
A Rust Implementation of HMAC and Time-based One-Time Passwords.
32
otp2
growingv0.0.1
Provides both HOTP and TOTP implementations of one-time passcodes
67
totp-rs
stablev5.7.1
RFC-compliant TOTP implementation with ease of use as a goal and additionnal QoL features.
Core Metrics
| otp-auth | otp2 | totp-rs | |
|---|---|---|---|
| Health Score | 38 | 32 | 67 |
| Total Downloads | 578 | 1.5K | 4.8M |
| 30d Downloads | 12 | 4 | 761.1K |
| Dependents | 0 | 0 | 1.0K |
| Releases | 1 | 1 | 49 |
| Last Updated | 255d ago | 996d ago | 18d ago |
| Age | 8m | 2y 8m | 5y 11m |
Health Breakdown
otp-auth
Maintenance
4
Quality
15
Community
6
Popularity
3
Documentation
10
otp2
Maintenance
1
Quality
14
Community
3
Popularity
4
Documentation
10
totp-rs
Maintenance
18
Quality
15
Community
14
Popularity
8
Documentation
12
Technical Details
| otp-auth | otp2 | totp-rs | |
|---|---|---|---|
| Version | 0.1.0 | 0.0.1 | 5.7.1 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | MIT | MIT | MIT |
| Dependencies | 0 | 7 | 11 |
| Crate Size | 19KB | 4KB | 28KB |
| Features | 0 | 0 | 6 |
| Yanked % | 0.0% | 0.0% | 49.0% |
| Edition | 2024 | 2021 | 2021 |
| MSRV | — | — | 1.66 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •totp-rs leads with a health score of 67/100, but none of the options score above 80.
- •totp-rs is depended on by 1.0K crates — strongest ecosystem trust.
- •⚠ otp2 has not been updated in over a year.
- •otp-auth, otp2 are pre-1.0 — API may change.