A JavaScript library for generating and verifying one-time passwords (TOTP/HOTP), commonly used for two-factor authentication (2FA).

Features

  • Supports both TOTP and HOTP algorithms
  • Implements industry-standard RFC 4226 and RFC 6238
  • Provides encryption and secret management
  • Works in Node.js and browser environments
  • Customizable time steps, hash algorithms, and digit lengths
  • Easy integration with authentication systems

Project Samples

Project Activity

See All Activity >

Categories

Security

License

MIT License

Follow OTPLib

OTPLib Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of OTPLib!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

TypeScript

Related Categories

TypeScript Security Software

Registered

2025-02-11