產生 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)