Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrHighThreshold = errors.New("threshold cannot be higher than the number of players")
ErrHighThreshold is returned when the number of players is lower than the threshold
View Source
var ErrInvalidTOTPSecret = errors.New("the provided value is not a valid TOTP secret key")
ErrInvalidTOTPSecret is returned when testing the given secret against the TOTP algorithm unsuccessfully
View Source
var ErrLowThreshold = errors.New("threshold cannot be lower than 2")
ErrLowThreshold is returned when the provided threshold makes no sense: if less than 2, there's no reason to use farMFA
Functions ¶
Types ¶
type EncryptFunc ¶
EncryptFunc turns a Toc into an encrypted string
func EncryptWithAge ¶
func EncryptWithAge(playerKeys ...age.Recipient) EncryptFunc
EncryptWithAge is used to encrypt a JSON-marshalled Toc with Age for a certain player
Click to show internal directories.
Click to hide internal directories.