chickadee » totp » hotp-generate

hotp-generate SECRET COUNTER #!key (digits 6) (algorithm 'sha1)procedure

Computes the HOTP value for the shared secret SECRET (a string of raw bytes) and the non-negative exact integer COUNTER, returning it as a decimal string zero-padded to digits characters. algorithm selects the HMAC hash function and may be 'sha1, 'sha256, or 'sha512.