TOTP और HOTP

TOTP (समय-आधारित वन-टाइम पासवर्ड, RFC 6238) और HOTP (HMAC-आधारित वन-टाइम पासवर्ड, RFC 4226) दो RFC हैं जिन्हें हर 2FA एनरोलमेंट QR लागू करता है। एन्कोडेड otpauth:// URI स्कीम Google Authenticator का वास्तविक मानक है, हर प्रमुख प्रमाणक ऐप में सर्वभौमिक।

TOTP स्पेक:RFC 6238 (time-based, 2011).
HOTP स्पेक:RFC 4226 (counter-based, 2005).
URI स्कीम:Google Authenticator Key URI Format, the format every authenticator agrees on.

यह क्या है

2FA एनरोलमेंट QR, otpauth:// स्कीम में एक URL है जिसमें साझा रहस्य और पहचान मेटाडेटा है। प्रारूप:

otpauth://TYPE/LABEL?secret=SECRET&issuer=ISSUER&algorithm=ALG&digits=N&period=SEC

कैनोनिकल टेस्ट वेक्टर

CaseInputsExpected otpauth:// URI
TOTP, minimal (SHA1, 6 digits, 30 s)issuer=GitHub
account=alice@example.com
secret=JBSWY3DPEHPK3PXP
otpauth://totp/GitHub:alice@example.com?secret=JBSWY3DPEHPK3PXP&issuer=GitHub
TOTP, SHA256, 8 digitsissuer=Corp
account=bob
secret=JBSWY3DPEHPK3PXP
algorithm=SHA256
digits=8
otpauth://totp/Corp:bob?secret=JBSWY3DPEHPK3PXP&issuer=Corp&algorithm=SHA256&digits=8
HOTP, counter=0issuer=YubiKey
account=carol
secret=JBSWY3DPEHPK3PXP
counter=0
otpauth://hotp/YubiKey:carol?secret=JBSWY3DPEHPK3PXP&issuer=YubiKey&counter=0
TOTP, RFC 6238 reference secretissuer=Example
account=test
secret=GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ
digits=8
Standard RFC test secret (12345678901234567890). Produces TOTP 94287082 at T=59 s.

लाइव Base32 सीक्रेट वैलिडेटर

प्रमाणक ऐप उन रहस्यों को अस्वीकार करते हैं जिनमें Base32 वर्णमाला (A-Z, 2-7) के बाहर कुछ भी हो। नीचे वही वैलिडेटर है जो Abundera TOTP जनरेटर के अंदर चलाता है, आपके ब्राउज़र में।

मान्य करने के लिए एक सीक्रेट दर्ज करें।

सामान्य त्रुटियाँ

प्रमाणक अनुकूलता

AppTOTP SHA1TOTP SHA256/512HOTP8-digitNotes
Google AuthenticatorYesIgnoredYesIgnoredThe de facto baseline. Always targets this first.
1PasswordYesYesYesYesFull RFC support.
AuthyYesYesNoYesDrops HOTP in newer versions.
BitwardenYesYesYesYesFull RFC support.
Microsoft AuthenticatorYesYesYesYesFull RFC support.
YubiKey AuthenticatorYesYesYesYesHOTP is the canonical YubiKey mode.
Duo MobileYesIgnoredNoIgnoredUses its own push flow; TOTP is fallback only.

यह भी देखें

स्पेक संदर्भ 2026-04-18 को सत्यापित। RFC 6238 (2011), RFC 4226 (2005), Google Key URI Format।