kspearrin/Otp.NET
A .NET implementation of TOTP and HOTP for things like two-factor authentication codes. observed · 2026-08-28
Health v2 · maintenance only
54/100
- Activity 55
- Release rhythm 27
- 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: 3519
- days_rel: 275
- days_push: 275
- n_releases_24m: 1
Adoption not part of the score
1319 stars · 181 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Otp.NET is a C# library implementing TOTP (RFC 6238) and HOTP (RFC 4226) one-time password algorithms, available on NuGet. It supports configurable hash modes, time steps, code lengths, OTP URIs, and Base32 encoding for two-factor authentication flows.
Use cases
- generate and validate TOTP 2FA codes in a .NET server
- implement two-factor authentication in a C# application
- verify Google Authenticator codes server-side
- generate HOTP one-time passwords in .NET
- embed TOTP code calculation in a mobile app via Mono
- parse and build otpauth:// URIs in C#
When to choose
- you need standards-compliant TOTP/HOTP in a .NET or .NET Standard project
- you want a small, focused, MIT-licensed library with configurable hash algorithms and step windows
- you need to validate 2FA codes from authenticator apps server-side
When to avoid
- you need full multi-factor authentication with WebAuthn or push-based flows
- your stack is not .NET
- you need a ready-made 2FA UI or user management rather than just OTP calculation
Facets
library · maturity stable
auth cryptography sdk security developer-tools backend dotnet cross-platform totp hotp two-factor-authentication 2fa otp base32 rfc6238 rfc4226
3 sources
- readme: https://github.com/kspearrin/Otp.NET · fetched 2026-08-28 · 28933f255d60
- homepage: https://www.nuget.org/packages/Otp.NET · fetched 2026-08-29 · 13a3f75bf103
- site_page: https://www.nuget.org/policies/About · fetched 2026-08-29 · a113b8a074c9
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| kspearrin/Otp.NET | main | 54 |
For agents
markdown · JSON · MCP: product_card(name="kspearrin/Otp.NET")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem