Générer HOTP

Génère des données selon l'algorithme ou le format défini par “Générer HOTP”.

Entrée: Texte (UTF-8) / Un fichierRésultat: Texte

Saisie de texte

Options

Exemples

Reproduce three authenticator counter codes from the HOTP standard — step 1

Explain why counters produce different codes using published test keys, with no real authenticator secret.

Entrée

GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ

Expected checks

Case-insensitive
Contains "Password: 755224"
Contains "counter=0"
Nom
RFC4226-public-test
Longueur du code
6
Compteur
0
Reproduce three authenticator counter codes from the HOTP standard — step 2

Explain why counters produce different codes using published test keys, with no real authenticator secret.

Entrée

GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ

Expected checks

Case-insensitive
Contains "Password: 287082"
Contains "counter=1"
Nom
RFC4226-public-test
Longueur du code
6
Compteur
1
Reproduce three authenticator counter codes from the HOTP standard — step 3

Explain why counters produce different codes using published test keys, with no real authenticator secret.

Entrée

GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ

Expected checks

Case-insensitive
Contains "Password: 520489"
Contains "counter=9"
Nom
RFC4226-public-test
Longueur du code
6
Compteur
9
Generate HOTP

Entrée

JBSWY3DPEHPK3PXP

Expected answer

URI: otpauth://hotp/Account?secret=JBSWY3DPEHPK3PXP&algorithm=SHA1&digits=6&counter=0

Password: 282760
Nom
Account
Longueur du code
6
Compteur
0
invalid base32 secret rejected

Entrée

not,valid|base32;input

Expected rejection

Message contains
Invalid secret. The input must be a valid base32 string (characters A–Z and 2–7).
Nom
Account
Longueur du code
6
Compteur
0
special characters in name are URI-encoded

Entrée

JBSWY3DPEHPK3PXP

Expected answer

URI: otpauth://hotp/user%40example.com?secret=JBSWY3DPEHPK3PXP&algorithm=SHA1&digits=6&counter=0

Password: 282760
Nom
user@example.com
Longueur du code
6
Compteur
0

Paramètres

ParamètreValeur par défautEntrée et choix
Nom"Account"Obligatoire
Longueur du code6Minimum: 6. Maximum: 8. Entier
Compteur0Minimum: 0. Entier

Outils associés

Autres

Référence de l’opération

Voir la documentation technique originale (English)