Creates an HOTP object.
Optional
config: { Configuration options.
HMAC hashing algorithm.
Initial counter value.
Token length.
Account provider.
Include issuer prefix in label.
Account label.
Secret key.
HMAC hashing algorithm.
Initial counter value.
Token length.
Account provider.
Include issuer prefix in label.
Account label.
Secret key.
Static
defaultsDefault configuration.
Validates an HOTP token.
Configuration options.
Counter value.
Token value.
Window of counter values to test.
Token delta or null if it is not found in the search window, in which case it should be considered invalid.
Static
generateStatic
validateValidates an HOTP token.
Configuration options.
HMAC hashing algorithm.
Counter value.
Token length.
Secret key.
Token value.
Window of counter values to test.
Token delta or null if it is not found in the search window, in which case it should be considered invalid.
HOTP: An HMAC-based One-time Password Algorithm.
See
RFC 4226