Genera TOTP

Genera dati secondo l'algoritmo o il formato definito da “Genera TOTP”.

Input: Testo (UTF-8) / Un fileRisultato: Testo

Inserimento di testo

Opzioni

Esempi

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.

Input

GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ

Expected checks

6 digits · 30-second period
Matches native HMAC for the current counter window.
Nome
RFC6238-public-test
Lunghezza del codice
6
Offset epoca (T0)
0
Intervallo (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.

Input

GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ

Expected checks

8 digits · 30-second period
Matches native HMAC for the current counter window.
Nome
RFC6238-public-test
Lunghezza del codice
8
Offset epoca (T0)
0
Intervallo (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.

Input

GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ

Expected checks

6 digits · 60-second period
Matches native HMAC for the current counter window.
Nome
RFC6238-public-test
Lunghezza del codice
6
Offset epoca (T0)
0
Intervallo (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.

Input

GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ

Expected checks

8 digits · 60-second period
Matches native HMAC for the current counter window.
Nome
RFC6238-public-test
Lunghezza del codice
8
Offset epoca (T0)
0
Intervallo (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.

Input

GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ

Expected checks

7 digits · 45-second period
Matches native HMAC for the current counter window.
Nome
RFC6238-public-test
Lunghezza del codice
7
Offset epoca (T0)
0
Intervallo (T1)
45
Generate TOTP

Input

JBSWY3DPEHPK3PXP

Expected checks

Matches /^URI: otpauth:\/\/totp\/Account\?secret=JBSWY3DPEHPK3PXP&algorithm=SHA1&digits=6&period=30\n\nPassword: \d{6}$/
Nome
Account
Lunghezza del codice
6
Offset epoca (T0)
0
Intervallo (T1)
30
invalid base32 secret rejected

Input

not,valid|base32;input

Expected rejection

Message contains
Invalid secret. The input must be a valid base32 string (characters A–Z and 2–7).
Nome
Account
Lunghezza del codice
6
Offset epoca (T0)
0
Intervallo (T1)
30

Parametri

ParametroValore predefinitoInput e opzioni
Nome"Account"Obbligatorio
Lunghezza del codice6Minimo: 6. Massimo: 8. Intero
Offset epoca (T0)0Minimo: 0. Intero
Intervallo (T1)30Minimo: 1. Intero

Strumenti correlati

Altro

Riferimento dell’operazione

Vedi la documentazione tecnica originale (English)