pquerna/otp
TOTP library for Go observed · 2026-08-28
Health v2 · maintenance only
39/100
- Activity 35
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4271
- days_rel: 474
- days_push: 391
- n_releases_24m: 1
Adoption not part of the score
2944 stars · 254 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A Go library implementing Time-based (TOTP, RFC 6238) and HMAC-based (HOTP, RFC 4228) one-time password algorithms for adding two-factor authentication to applications. It supports key generation, code generation and validation, and QR code image generation for user enrollment.
Use cases
- add TOTP two-factor authentication to a Go web app
- generate QR codes for authenticator app enrollment
- validate 6-digit OTP codes from users
- implement HOTP counter-based one-time passwords
- build MFA login flow without SMS dependency
When to choose
- you need standards-compliant TOTP/HOTP in a Go application
- you want QR code generation for easy authenticator setup
- you need a mature, widely used OTP library with an Apache-2.0 license
When to avoid
- you need full MFA orchestration (recovery codes, enrollment UI) out of the box
- your project is not in Go
- you need SMS-based or push-based second factors
Facets
library · maturity stable
auth security cryptography security backend web-development developer-tools go cross-platform totp hotp two-factor-authentication mfa one-time-password qr-code rfc6238 rfc4226
1 source
- readme: https://github.com/pquerna/otp · fetched 2026-08-28 · b1ec589f0f75
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| pquerna/otp | main | 39 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem