Skip to content
O

Otplib

One Time Password (OTP) / 2FA for Node.js and Browser

by yeojzFree

#1365in Utilities
0In stores

Description

otplib is a one time password library for TypeScript, for Node.js and the browser. It implements HOTP, the counter based one time password d…

Highlights

  • HOTP and TOTP per RFC 4226 and RFC 6238
  • TypeScript types with an async first API
  • Pluggable crypto and Base32 implementations
  • Works with Google, Microsoft and Authy authenticator apps
  • Interactive demo, guide, API reference and CLI

Ratings & Reviews

No ratings yet

Be the first to rate Otplib.

People also visit

O

Otpauth

Implements two-step verification of HOTP/TOTP. Also known as one time password

Utilities
Launch
O

Otp.NET

A .NET implementation of TOTP and HOTP

Utilities
Launch
T

Totp RS

RFC-compliant TOTP implementation with ease of use as a goal and additionnal…

Utilities
Launch
F

FreeOTP

Open source implementation of the two-factor authentication HOTP

Developer Tools
Launch
T

Totp

Support Two Factor Authentication (2FA) in your application with ease

Utilities
Launch
A

Authme

Simple cross-platform two-factor (2FA) authenticator app for desktop

Utilities
Launch

Otplib FAQ

What is otplib?

A TypeScript library for one time passwords and two factor authentication, for Node.js and the browser.

Which standards does it follow?

HOTP from RFC 4226 and TOTP from RFC 6238, which the README describes as the standard for authenticator apps.

Which authenticator apps work with it?

The site says it is compatible with Google, Microsoft, Authy and many more.

Can it run in the browser?

Yes. It supports Node.js and the browser, and can use Web Crypto.

How does server side verification work?

The server accepts tokens from the current counter up to a window ahead, to allow for resynchronization.

Is it free?

Yes. It is released under the MIT License and the source is on GitHub.

What are the best Otplib alternatives?

Popular alternatives to Otplib include Otpauth, Otp.NET and Totp RS. See all Otplib alternatives

Developer Stuff

Badges