Генерация HOTP

Генерирует данные в соответствии с алгоритмом или форматом, определённым “Генерация HOTP”.

Ввод: Текст (UTF-8) / ФайлРезультат: Текст

Текстовый ввод

Параметры инструмента

Примеры

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.

Ввод

GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ

Expected checks

Case-insensitive
Contains "Password: 755224"
Contains "counter=0"
Имя
RFC4226-public-test
Длина кода
6
Счетчик
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.

Ввод

GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ

Expected checks

Case-insensitive
Contains "Password: 287082"
Contains "counter=1"
Имя
RFC4226-public-test
Длина кода
6
Счетчик
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.

Ввод

GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ

Expected checks

Case-insensitive
Contains "Password: 520489"
Contains "counter=9"
Имя
RFC4226-public-test
Длина кода
6
Счетчик
9
Generate HOTP

Ввод

JBSWY3DPEHPK3PXP

Expected answer

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

Password: 282760
Имя
Account
Длина кода
6
Счетчик
0
invalid base32 secret rejected

Ввод

not,valid|base32;input

Expected rejection

Message contains
Invalid secret. The input must be a valid base32 string (characters A–Z and 2–7).
Имя
Account
Длина кода
6
Счетчик
0
special characters in name are URI-encoded

Ввод

JBSWY3DPEHPK3PXP

Expected answer

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

Password: 282760
Имя
user@example.com
Длина кода
6
Счетчик
0

Параметры

ПараметрЗначение по умолчаниюВвод и варианты
Имя"Account"Обязательно
Длина кода6Минимум: 6. Максимум: 8. Целое число
Счетчик0Минимум: 0. Целое число

Похожие инструменты

Прочее

Справка об операции

Открыть исходную техническую документацию (English)