# Functions
CalculateRFC2104HMAC calculates the hmac-sha1 value for a given message and key.
GenerateExtendedSecretKey returns 32bytes to be used as a secret key.
GenerateMessage takes in a Unix Timestamp and an offsetType of 0,1,2 offsetTypes: 0=No Offset; 1=Future Offset; 2=Past Offset.
GenerateMessageBytes takes in a int64 number and turns it to a BigEndian byte array.
GenerateStandardSecretKey returns 16bytes to be used as a secret key.
GenerateValidToken takes a Unix Timestamp and a secret key and calculates a valid TOTP token.
ValidateToken takes a submitted token, a secret key and a Unix Timestamp and validates whether the token is valid.
ValidateTokenCurrentTimestamp takes a submitted token and a secret key and validates against the current Unix Timestamp whether the token is valid.
ValidateTokenWithTimestamp takes a submitted token and a secret key and validates against the current Unix Timestamp whether the token is valid.
# Constants
Future can be used as an Offset Type.
KeySizeExtended is the extended size of the SecretKey (256bit).
KeySizeStandard is the default size of the SecretKey (128bit).
OffsetFuture is the offset to add when the OffsetTypeFuture was used.
OffsetPast is the offset to add when the OffsetTypePast was used.
OffsetPresent is the offset to add when the OffsetTypePresent was used.
Past can be used as an Offset Type.
Present can be used as an Offset Type.
# Structs
Validation is a struct used to return the result of a token validation.