How HOTP (HMAC-based One Time Password) works
masterHOTP is a counter-based algorithm (RFC 4226). You create an Hotp instance with a shared secret key.
Configuration options:
mode: The hash algorithm (defaults toOtpHashMode.Sha1, supportsSha256andSha512).hotpSize: The number of digits in the code (defaults to 6).
To verify an HOTP code, use VerifyHotp, which requires the current counter value.