RevealTheme logo

2FA二维码生成器

为Google Authenticator、Authy、1Password及其他2FA应用生成TOTP二维码。

如何使用本工具

  1. 1

    Type the service name into the first field (this becomes the issuer label, e.g. RevealTheme).

  2. 2

    Enter the account identifier, usually the user's email or username.

  3. 3

    Paste an existing Base32 secret, or click Random to generate a fresh 32-character one with crypto.getRandomValues.

  4. 4

    Scan the QR code that appears below with your authenticator app, or copy the otpauth:// URI shown under it.

什么是2FA二维码生成器?

两步验证应用会扫描以二维码形式编码的otpauth://URI,以配置基于时间的一次性密码(TOTP,RFC 6238)。本工具根据服务名称、账户标识符和Base32密钥构建该URI,然后将其渲染为可扫描的二维码。

常见使用场景

  • Demoing a 2FA enrollment flow in a tutorial, slide deck, or product screenshot without wiring up a real backend.

  • Generating a test TOTP secret while developing or QA-testing a login system that uses standard SHA1/6-digit/30-second codes.

  • Re-encoding a Base32 secret you already hold (for example from a recovery backup) into a fresh scannable QR.

  • Teaching teammates how the otpauth:// Key URI Format is structured by showing the URI printed beneath the QR.

  • Quickly checking whether an authenticator app accepts the default TOTP parameters before committing to a server-side library.

  • Creating a throwaway 2FA setup for a sandbox or staging account where the secret does not protect anything sensitive.

常见问题

密钥会被发送到任何地方吗?
二维码的渲染使用了外部服务(api.qrserver.com)。为获得最高安全性,请仅将其用于测试密钥;对于生产环境的2FA配置,请使用服务器端生成。

相关工具