Skip to main content
DevTools24

TOTP Generator

Generate time-based one-time passwords for two-factor authentication. Create QR codes compatible with Google Authenticator, Authy, and other TOTP apps.

About TOTP

  • TOTP (Time-based One-Time Password) generates codes that change every 30 seconds
  • The secret key should be kept secure - anyone with it can generate codes
  • Used for two-factor authentication (2FA) to enhance account security
  • Based on RFC 6238 and uses HMAC-SHA1 by default

Time-based One-Time Passwords - Détails techniques

TOTP is an algorithm that generates one-time passwords using the current time and a shared secret. It's the standard behind Google Authenticator and most 2FA apps. Codes change every 30 seconds by default.

Alternative en ligne de commande

# Generate TOTP with oathtool
oathtool --totp -b JBSWY3DPEHPK3PXP

# Or use Node.js
npm install otplib
node -e "console.log(require('otplib').authenticator.generate('JBSWY3DPEHPK3PXP'))"

Référence

Voir la spécification officielle