TOTP / 2FA 生成器
从密钥生成基于时间的一次性密码(TOTP)——兼容 Google Authenticator
TOTP Generator
RFC 6238 — Time-based One-Time Passwords via WebCrypto
Valid for 30 more seconds
Technical Details
Algorithm
HMAC-SHA1
Period
30 seconds
Digits
6
Time Slot (T)
59296149
Security Notice
Scan the secret with Google Authenticator or Authy to verify codes match. Never share your secret key — it grants full access to generate valid codes.
TOTP / 2FA Code Generator
Generate time-based one-time passwords (TOTP) from a secret key — compatible with Google Authenticator, Authy, and any RFC 6238 authenticator app. Runs 100% in your browser.
FAQ
What is TOTP?
TOTP (Time-based One-Time Password) is a 6-digit code that changes every 30 seconds. It's the second factor in 2FA — even if someone has your password, they can't log in without the current TOTP code.
How does TOTP work?
TOTP = HMAC-SHA1(secret_key, floor(current_unix_time / 30)), then take the last 6 digits. The server and your authenticator app derive the same code independently — no network call needed.
Is this tool safe to use?
This tool is for testing and development. Never enter your real 2FA secrets into any online tool. Use your authenticator app for production accounts.
继续探索
您可能喜欢的其他 安全工具…
密码强度检查器
测试密码强度并获取改进建议
二维码生成器
为URL、文本、Wi-Fi、名片等生成二维码 — 下载PNG或SVG
二维码读取器
从图片或摄像头扫描解码二维码 — 离线可用
条形码生成器
生成Code 128、Code 39、EAN-13、QR等格式的条形码
SSH 密钥生成器
使用 Web Crypto API 生成 Ed25519 或 ECDSA SSH 密钥对——100% 在浏览器中运行
RSA 密钥生成器
使用 Web Crypto API 生成 PEM 格式的 2048 位或 4096 位 RSA 密钥对——100% 在浏览器中运行
哈希比较器
比较两个哈希值以验证文件完整性或匹配校验和
文件哈希检查器
拖放任意文件即可立即计算 MD5、SHA-1、SHA-256 和 SHA-512 — 与已知哈希对比验证完整性