Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TOTP ¶
type TOTP struct {
Secret string // Secret key (required)
Digits int // OTP digit count (default: 6)
Algorithm TotpAlgo // OTP Algorithm ("SHA1" or "SHA256" or "SHA512") (default: SHA1)
Period int64 // Period for which OTP is valid (seconds) (default: 30)
UnixTime int64 // (Optional) Unix Timestamp (default: Current unix timestamp)
}
Time-based One-Time Password from RFC - https://datatracker.ietf.org/doc/html/rfc6238
Click to show internal directories.
Click to hide internal directories.