⏱️ RFC 6238 Two-Factor Authentication Engine
2FA TOTP Authenticator Generator
Generate real-time 6-digit Time-Based One-Time Passwords (TOTP) from Base32 secret keys with live 30-second token rotation.
Sample Keys:
Standard Demo Key (JBSWY3DPEHPK3PXP)
32-Char Secret Key
Live 2FA Verification Token
------
Refreshes in 30 seconds
RFC 6238 TOTP Algorithm Mechanics
- Epoch Time Counter: $T = \lfloor \frac{\text{Current Unix Time}}{30} \rfloor$.
- HMAC Signature: An HMAC-SHA1 hash is computed over the counter $T$ using the decoded secret key.
- Dynamic Truncation: The lower 4 bits of the last byte select an offset to extract a 31-bit integer, and modulo $10^6$ produces the 6-digit passkey.