otplib-core/hotpDigest

Intermediate HOTP Digests

Source:
Parameters:
Name Type Description
secret string

your secret that is used to generate the token

counter number

the OTP counter (usually it's an incremental count)

options.algorithm string

hmac algorithm

options.createHmacSecret function

the encoding function for secret

options.encoding string

the encoding of secret

Returns:
Type:
string
  • hex string