All Projects β†’ hectorm β†’ Otpauth

hectorm / Otpauth

Licence: mit
One Time Password (HOTP/TOTP) library for Node.js, Deno and browsers.

Programming Languages

184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Otpauth

πŸ”‘ One Time Password (OTP) / 2FA for Node.js and Browser - Supports HOTP, TOTP and Google Authenticator
Stars: ✭ 916 (+578.52%)
Mutual labels:  otp, two-factor-authentication, authenticator, hotp, two-factor, browser
**NOT MAINTAINED** Two-factor authentication for Node.js. One-time passcode generator (HOTP/TOTP) with support for Google Authenticator.
Stars: ✭ 2,531 (+1774.81%)
Mutual labels:  node-js, totp, two-factor-authentication, hotp, two-factor
A Web app to manage your Two-Factor Authentication (2FA) accounts and generate their security codes
Stars: ✭ 664 (+391.85%)
Mutual labels:  otp, two-factor, totp, hotp, two-factor-authentication
πŸ“± Two-Factor Authentication (2FA) client for Android + Wear OS
Stars: ✭ 155 (+14.81%)
Mutual labels:  totp, two-factor-authentication, authenticator, hotp
HMAC-based (HOTP) and Time-based (TOTP) One-Time Password manager. Works with Google Authenticator for Two-Factor Authentication.
Stars: ✭ 79 (-41.48%)
Mutual labels:  otp, totp, hotp, two-factor-authentication
A free, secure and open source app for Android to manage your 2-step verification tokens.
Stars: ✭ 2,692 (+1894.07%)
Mutual labels:  otp, totp, authenticator, hotp
Twofactor totp
πŸ”‘ Second factor TOTP (RFC 6238) provider for Nextcloud
Stars: ✭ 203 (+50.37%)
Mutual labels:  otp, totp, two-factor-authentication, two-factor
Go Guardian
Go-Guardian is a golang library that provides a simple, clean, and idiomatic way to create powerful modern API and web authentication.
Stars: ✭ 204 (+51.11%)
Mutual labels:  auth, totp, authenticator, hotp
Time-Based One-Time Password Code Generator
Stars: ✭ 76 (-43.7%)
Mutual labels:  two-factor, totp, authenticator, two-factor-authentication
πŸ”‘ A small library for generating TOTP and HOTP one-time passwords on iOS.
Stars: ✭ 243 (+80%)
Mutual labels:  otp, totp, two-factor-authentication, hotp
Open source two-factor authentication for Android
Stars: ✭ 3,326 (+2363.7%)
Mutual labels:  otp, totp, two-factor-authentication, hotp
A small and easy-to-use one-time password generator library for Java according to RFC 4226 (HOTP) and RFC 6238 (TOTP).
Stars: ✭ 107 (-20.74%)
Mutual labels:  otp, totp, hotp, two-factor-authentication
Enhanced fork of FreeOTP-Android providing a feature-rich 2FA authenticator
Stars: ✭ 223 (+65.19%)
Mutual labels:  otp, totp, authenticator, hotp
CrOTP - One Time Passwords for Crystal
Stars: ✭ 62 (-54.07%)
Mutual labels:  otp, totp, hotp, two-factor-authentication
apache 2fa
Apache two-factor (2FA) authentication with Google Authenticator based on Time-based One-Time Password (TOTP) or HMAC-based one-time password (HOTP) Algorithms.
Stars: ✭ 63 (-53.33%)
Mutual labels:  two-factor, totp, hotp, two-factor-authentication
πŸ” A PHP library for generating one time passwords according to RFC 4226 (HOTP) and the RFC 6238 (TOTP)
Stars: ✭ 857 (+534.81%)
Mutual labels:  otp, totp, hotp
HMAC Based One Time Passwords in PHP. RFC4226 and RFC6238 compliant.
Stars: ✭ 51 (-62.22%)
Mutual labels:  otp, totp, hotp
multiOTP Credential Provider is a V2 Credential Provider for Windows 7/8/8.1/10/2012(R2)/2016 with options like RDP only and UPN name support
Stars: ✭ 121 (-10.37%)
Mutual labels:  otp, totp, hotp
πŸ” multi factor authentication system (2FA, MFA, OTP Server)
Stars: ✭ 1,027 (+660.74%)
Mutual labels:  otp, two-factor-authentication, two-factor
React Native wrapper for Android's SMS User Consent API, ready to use in React Native apps with minimum effort.
Stars: ✭ 45 (-66.67%)
Mutual labels:  otp, two-factor, auth

Last version Build Status Dependencies status Dev dependencies status NPM downloads


One Time Password (HOTP/TOTP) library for Node.js, Deno and browsers.



import * as OTPAuth from 'otpauth';

// Create a new TOTP object.
let totp = new OTPAuth.TOTP({
	issuer: 'ACME',
	label: 'AzureDiamond',
	algorithm: 'SHA1',
	digits: 6,
	period: 30,
	secret: 'NB2W45DFOIZA' // or "OTPAuth.Secret.fromB32('NB2W45DFOIZA')"

// Generate a token.
let token = totp.generate();

// Validate a token.
let delta = totp.validate({
	token: token,
	window: 1

// Convert to Google Authenticator key URI.
//   otpauth://totp/ACME:AzureDiamond?issuer=ACME&secret=NB2W45DFOIZA&algorithm=SHA1&digits=6&period=30
let uri = totp.toString(); // or "OTPAuth.URI.stringify(totp)"

// Convert from Google Authenticator key URI.
let parsedTotp = OTPAuth.URI.parse(uri);


// @deno-types=""
import * as OTPAuth from ''

// Same as above...


<script src=""></script>
	// Same as above...


See the documentation page.

Supported hashing algorithms

In Node.js, the same algorithms as Crypto.createHmac function are supported, since it is used internally. In Deno and browsers, the SHA1, SHA256 and SHA512 algorithms are supported by using the Stanford Javascript Crypto Library.


MIT License Β© HΓ©ctor Molinero FernΓ‘ndez.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].