func Totp(key []byte, counter, epoch, duration int64, digits int) int
Totp calculates a Totp value using the key and number of digits supplied.
Counter is the current Unix time, epoch is a relative epoch (can be 0).
Duration is how long the code will remain valid (in seconds).
Truncate is the Truncation function for Hotp and Totp code generation defined in
RFC 4226. Sum is the 20-byte HMAC-SHA1 output, and digits is the number of digits
for the output code.