Генерация TOTP

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

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

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

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

Примеры

A conventional six-digit authenticator

Use the public RFC test secret with 6 digits and a 30-second interval. The current answer changes with time; never use this published secret for an account.

Ввод

GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ

Expected checks

6 digits · 30-second period
Matches native HMAC for the current counter window.
Имя
RFC6238-public-test
Длина кода
6
Смещение эпохи (T0)
0
Интервал (T1)
30
An eight-digit code

Use the public RFC test secret with 8 digits and a 30-second interval. The current answer changes with time; never use this published secret for an account.

Ввод

GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ

Expected checks

8 digits · 30-second period
Matches native HMAC for the current counter window.
Имя
RFC6238-public-test
Длина кода
8
Смещение эпохи (T0)
0
Интервал (T1)
30
A one-minute interval

Use the public RFC test secret with 6 digits and a 60-second interval. The current answer changes with time; never use this published secret for an account.

Ввод

GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ

Expected checks

6 digits · 60-second period
Matches native HMAC for the current counter window.
Имя
RFC6238-public-test
Длина кода
6
Смещение эпохи (T0)
0
Интервал (T1)
60
An eight-digit one-minute interval

Use the public RFC test secret with 8 digits and a 60-second interval. The current answer changes with time; never use this published secret for an account.

Ввод

GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ

Expected checks

8 digits · 60-second period
Matches native HMAC for the current counter window.
Имя
RFC6238-public-test
Длина кода
8
Смещение эпохи (T0)
0
Интервал (T1)
60
A custom seven-digit interval

Use the public RFC test secret with 7 digits and a 45-second interval. The current answer changes with time; never use this published secret for an account.

Ввод

GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ

Expected checks

7 digits · 45-second period
Matches native HMAC for the current counter window.
Имя
RFC6238-public-test
Длина кода
7
Смещение эпохи (T0)
0
Интервал (T1)
45
Generate TOTP

Ввод

JBSWY3DPEHPK3PXP

Expected checks

Matches /^URI: otpauth:\/\/totp\/Account\?secret=JBSWY3DPEHPK3PXP&algorithm=SHA1&digits=6&period=30\n\nPassword: \d{6}$/
Имя
Account
Длина кода
6
Смещение эпохи (T0)
0
Интервал (T1)
30
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
Смещение эпохи (T0)
0
Интервал (T1)
30

Параметры

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

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

Прочее

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

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