DecodeBox
Search
K
Guides
SDK Reference
Operations
Playgrounds
Operations Explorer
Auto Detection Lab
Encoding & Decoding Lab
Open DecodeBox
Theme
Menu
ON THIS PAGE
#
Generate HOTP
The counter-based one-time password of RFC 4226, from a shared secret.
ID:
generate-hotp
Category: Other
Aliases: hotp, counter otp, rfc 4226
#
Arguments
Argument
Type
Default
Constraints
Secret encoding
option
"Base32"
Base32, Hex, UTF-8, Raw bytes
Counter
number
0
Minimum: 0
Digits
number
6
Minimum: 4. Maximum: 10
Hash
option
"SHA-1"
SHA-1, SHA-256, SHA-512