Documentation ¶
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func IsSecretValid ¶
A non-panic way of seeing weather or not a given secret is valid
func RandomSecret ¶
generate a random secret of given length (number of bytes) returns empty string if something bad happened
Types ¶
type TOTP ¶
type TOTP struct { OTP // contains filtered or unexported fields }
time-based OTP counters.
func (*TOTP) GenerateBarcodeUrl ¶
Click to show internal directories.
Click to hide internal directories.