Generates an HMAC-Based One-Time Password (HOTP) as defined in RFC 4226.
HOTP generation parameters.
The generated OTP code as a zero-padded string.
(Exception) - If the secret is empty, digits is out of range, or HMAC computation fails.
Generates an HMAC-Based One-Time Password (HOTP) as defined in RFC 4226.