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.
57
rust-otp
stablev3.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.
48
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 | 57 | 48 |
| Total Downloads | 380.5K | 13.0K | 37 |
| 30d Downloads | 4.5K | 2.5K | 0 |
| Dependents | 39 | 1 | 0 |
| Releases | 15 | 3 | 2 |
| Last Updated | 1164d ago | 92d ago | 53d ago |
| Age | 8y 3m | 2y 6m | 1m |
Health Breakdown
google-authenticator
Maintenance
4
Quality
9
Community
10
Popularity
7
Documentation
10
rust-otp
Maintenance
12
Quality
21
Community
7
Popularity
5
Documentation
12
roka-totp
Maintenance
11
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 57/100, but none of the options score above 80.
- •google-authenticator has the most downloads (380.5K), suggesting wider adoption.
- •⚠ google-authenticator has not been updated in over a year.
- •google-authenticator, roka-totp are pre-1.0 — API may change.