Documentation ¶
Overview ¶
Package otp provides functionality for generating and reading One-Time Passwords.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HOTP ¶
type HOTP struct {
// contains filtered or unexported fields
}
HOTP is not implemented due to syncing concerns.
This is a placeholder that doesn't contain real data.
type MOTP ¶
type MOTP struct {
// contains filtered or unexported fields
}
func GenerateMOTP ¶
Generates an MOTP for the current time
func GenerateMOTPAt ¶
func GenerateMOTPAt(secret []byte, algo string, digits int, period int64, pin string, sec int64) (MOTP, error)
Generates an MOTP at the specified time in seconds
type SteamOTP ¶
type SteamOTP struct {
// contains filtered or unexported fields
}
func GenerateSteamOTP ¶
Generates a Steam OTP for the current time
func GenerateSteamOTPAt ¶
func GenerateSteamOTPAt(secret []byte, algo string, digits int, period int64, seconds int64) (SteamOTP, error)
Generates a Steam OTP at the specified time in seconds
type TOTP ¶
type TOTP struct {
// contains filtered or unexported fields
}
func GenerateTOTP ¶
Generates a TOTP for the current time
func GenerateTOTPAt ¶
func GenerateTOTPAt(secret []byte, algo string, digits int, period int64, seconds int64) (TOTP, error)
Generates a TOTP at the specified time in seconds
Click to show internal directories.
Click to hide internal directories.