TOTP 动态码生成器 — Uttir
Skip to main content

TOTP 动态码生成器

根据 Base32 密钥生成基于时间的一次性密码(2FA 验证码),算法与 Google Authenticator 相同。

TOTP 动态码生成器 — TOTP — Time-based One-Time Password, defined in RFC 6238 — is the algorithm behind the 6-digit codes in Google Authenticator, Authy, 1Password, and every other 2FA app. The codes rotate every 30 seconds (typically) and are derived from a shared Base32 secret plus the current time.

Codes are generated locally in your browser using the Web Crypto API. Your secret is never sent to a server.

Was TOTP 动态码生成器 useful?

TOTP 动态码生成器是什么?

TOTP — Time-based One-Time Password, defined in RFC 6238 — is the algorithm behind the 6-digit codes in Google Authenticator, Authy, 1Password, and every other 2FA app. The codes rotate every 30 seconds (typically) and are derived from a shared Base32 secret plus the current time.

This tool generates those codes locally using the Web Crypto API. Paste any Base32 secret (or an otpauth:// URI from a QR code) and watch the code refresh in real time. Nothing leaves your browser.

使用方法

  1. Paste your secret

    A Base32 string (A–Z, 2–7) or a full otpauth:// URI.

  2. Read the code

    The 6-digit code refreshes automatically. Copy it before the timer hits zero.

  3. Use it within the window

    Codes are valid for the period (default 30s). After that, a new one is generated.

示例

Google Authenticator setup

After scanning a QR code, the service shows a 6-digit code that rotates every 30 seconds.

JBSWY3DPEHPK3PXP

结果: A 6-digit code, e.g. 492 039, with a 30-second countdown.

From an otpauth:// URI

Most QR codes encode a URI that includes the secret and parameters.

otpauth://totp/GitHub:user?secret=JBSWY3DPEHPK3PXP&issuer=GitHub

结果: Same code as above — the URI is parsed and the secret extracted.

常见问题

相关指南

相关工具

Last reviewed: 2026-11-21