Decision Workspace
google-authenticator vs rust-otp vs roka-totp
Side-by-side comparison of Rust crates
40
google-authenticator
growingv0.4.2
This Rust crate can be used to interact with the Google Authenticator mobile app for 2-factor-authentication.
54
rust-otp
growingv3.0.0
A modern Rust library for performing the HMAC-based One-Time Password (HOTP) and Time-based One-Time Password (TOTP) algorithms with async support.
47
roka-totp
experimentalv0.1.0
Zero-dependency TOTP / HOTP for Rust — RFC 4226 / 6238, std-only, no unsafe.
Core Metrics
| google-authenticator | rust-otp | roka-totp | |
|---|---|---|---|
| Health Score | 40 | 54 | 47 |
| Total Downloads | 403.7K | 33.3K | 47 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 41 | 1 | 0 |
| Releases | 15 | 3 | 2 |
| Last Updated | 1252d ago | 180d ago | 141d ago |
| Age | 8y 6m | 2y 9m | 4m |
Health Breakdown
google-authenticator
Maintenance
4
Quality
9
Community
10
Popularity
7
Documentation
10
rust-otp
Maintenance
9
Quality
21
Community
7
Popularity
5
Documentation
12
roka-totp
Maintenance
10
Quality
14
Community
6
Popularity
2
Documentation
15
Technical Details
| google-authenticator | rust-otp | roka-totp | |
|---|---|---|---|
| Version | 0.4.2 | 3.0.0 | 0.1.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT | MIT | Apache-2.0 OR MIT |
| Dependencies | 11 | 4 | 1 |
| Crate Size | 10KB | 10KB | 22KB |
| Features | 3 | 2 | 0 |
| Yanked % | 53.3% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2024 |
| MSRV | — | 1.70 | 1.85 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •rust-otp leads with a health score of 54/100, but none of the options score above 80.
- •google-authenticator has the most downloads (403.7K), suggesting wider adoption.
- •⚠ google-authenticator has not been updated in over a year.
- •google-authenticator, roka-totp are pre-1.0 — API may change.