A Go library for generating TOTP and HOTP one-time passwords with customizable parameters.
otpgen is a Go library that generates TOTP (Time-based One-Time Password) and HOTP (HMAC-based One-Time Password) codes for implementing two-factor authentication. It provides a simple API for creating OTPs with customizable parameters like secret keys, digit length, hash algorithms, and time periods.
Go developers who need to add two-factor authentication to their applications or services, particularly those building security-focused systems requiring OTP generation.
Developers choose otpgen for its clean, minimal API that implements RFC standards correctly without bloat, making it easy to integrate OTP generation into Go applications with full control over cryptographic parameters.
Library to generate TOTP/HOTP codes
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.