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)