Decision Workspace
twoken vs totp-rs vs roka-totp
Side-by-side comparison of Rust crates
38
twoken
growingv0.4.0
Generate One-Time Passwords from stored token secrets.
64
totp-rs
stablev5.7.1
RFC-compliant TOTP implementation with ease of use as a goal and additionnal QoL features.
51
roka-totp
experimentalv0.1.0
Zero-dependency TOTP / HOTP for Rust — RFC 4226 / 6238, std-only, no unsafe.
Core Metrics
| twoken | totp-rs | roka-totp | |
|---|---|---|---|
| Health Score | 38 | 64 | 51 |
| Total Downloads | 4.8K | 6.3M | 28 |
| 30d Downloads | 0 | 756.5K | 0 |
| Dependents | 0 | 1.3K | 0 |
| Releases | 5 | 49 | 2 |
| Last Updated | 348d ago | 77d ago | 4d ago |
| Age | 1y 11m | 6y 1m | 4d |
Health Breakdown
twoken
Maintenance
6
Quality
12
Community
6
Popularity
4
Documentation
10
totp-rs
Maintenance
15
Quality
15
Community
14
Popularity
8
Documentation
12
roka-totp
Maintenance
14
Quality
14
Community
6
Popularity
2
Documentation
15
Technical Details
| twoken | totp-rs | roka-totp | |
|---|---|---|---|
| Version | 0.4.0 | 5.7.1 | 0.1.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | AGPL-3.0-or-later | MIT | Apache-2.0 OR MIT |
| Dependencies | 16 | 11 | 1 |
| Crate Size | 30KB | 28KB | 22KB |
| Features | 0 | 6 | 0 |
| Yanked % | 0.0% | 49.0% | 0.0% |
| Edition | 2021 | 2021 | 2024 |
| MSRV | — | 1.66 | 1.85 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •totp-rs leads with a health score of 64/100, but none of the options score above 80.
- •totp-rs is depended on by 1.3K crates — strongest ecosystem trust.
- •twoken, roka-totp are pre-1.0 — API may change.