package
1.0.0
Repository: https://github.com/agitdevcenter/gopkg.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Constants

AlgorithmMD5 refer to MD5.
AlgorithmSHA1 default hash algorithm refer to SHA1DO NOT CHANGE THIS ALGORITHM ORDER.
AlgorithmSHA256 refer to SHA256.
AlgorithmSHA512 refer to SHA512.
DigitsEight option to use 8 digit code.
DigitsSix default digit is 6.

# Variables

ErrValidateInputInvalidLength The user provided passcode length was not expected.
ErrValidatePasscode passcode is not valid.
ErrValidateSecretInvalidBase32 Error when attempting to convert the secret from base32 to raw bytes.

# Type aliases

Algorithm represents the hashing function to use in the HMAC operation needed for OTPs.
Digits represents the number of digits present in the user's OTP passcode.