package
0.0.0-20210604230344-19bee3a11d65
Repository: https://github.com/tossp/tsgo.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

NewKeyFromURL creates a new Key from an TOTP or HOTP url.

# Constants

No description provided by the author
AlgorithmSHA1 should be used for compatibility with Google Authenticator.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

When generating a Key, the Account Name must be set.
When generating a Key, the Issuer must be set.
No description provided by the author
No description provided by the author
The user provided passcode length was not expected.
Error when attempting to convert the secret from base32 to raw bytes.

# Structs

Key represents an TOTP or HTOP key.

# 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.