TOTP & HOTP

TOTP (Time-based One-Time Password, RFC 6238) und HOTP (HMAC-based One-Time Password, RFC 4226) sind die beiden RFCs, die jeder 2FA-Einschreibungs-QR implementiert. Das kodierte URI-Schema otpauth:// ist der De-facto-Standard von Google Authenticator, universell in allen großen Authenticator-Apps.

TOTP-Spec:RFC 6238 (zeitbasiert, 2011).
HOTP-Spec:RFC 4226 (zählerbasiert, 2005).
URI-Schema:Google Authenticator Key URI Format, das Format, auf das sich alle Authenticatoren einigen.

Was es ist

Ein 2FA-Einschreibungs-QR ist eine URL im Schema otpauth://, die den gemeinsamen Schlüssel plus identifizierende Metadaten trägt. Format:

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

Kanonische Testvektoren

FallEingabenErwartete otpauth://-URI
TOTP, minimal (SHA1, 6 Stellen, 30 s)issuer=GitHub
account=alice@example.com
secret=JBSWY3DPEHPK3PXP
otpauth://totp/GitHub:alice@example.com?secret=JBSWY3DPEHPK3PXP&issuer=GitHub
TOTP, SHA256, 8 Stellenissuer=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-Referenzschlüsselissuer=Example
account=test
secret=GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ
digits=8
Standard-RFC-Testschlüssel (12345678901234567890). Erzeugt TOTP 94287082 bei T=59 s.

Live Base32-Schlüssel-Validator

Authenticator-Apps lehnen Schlüssel ab, die etwas außerhalb des Base32-Alphabets (A-Z, 2-7) enthalten. Nachfolgend ist der gleiche Validator, den Abundera im TOTP-Generator einbettet, läuft in Ihrem Browser.

Geben Sie einen Schlüssel zur Validierung ein.

Häufige Fallstricke

Authenticator-Kompatibilität

AppTOTP SHA1TOTP SHA256/512HOTP8 StellenHinweise
Google AuthenticatorJaIgnoriertJaIgnoriertDie De-facto-Baseline. Immer zuerst damit testen.
1PasswordJaJaJaJaVollständige RFC-Unterstützung.
AuthyJaJaNeinJaDropped HOTP in neueren Versionen.
BitwardenJaJaJaJaVollständige RFC-Unterstützung.
Microsoft AuthenticatorJaJaJaJaVollständige RFC-Unterstützung.
YubiKey AuthenticatorJaJaJaJaHOTP ist der kanonische YubiKey-Modus.
Duo MobileJaIgnoriertNeinIgnoriertVerwendet eigenen Push-Flow; TOTP ist nur Fallback.

Siehe auch

Spec-Referenzen verifiziert am 2026-04-18. RFC 6238 (2011), RFC 4226 (2005), Google Key URI Format.