Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
ErrInvalidSharedSecret is returned when shared secret isn't in base64 form
Functions ¶
Types ¶
type Totp ¶
Totp is structure holding data needed for generating TOTP token.
func NewTimedTotp ¶
NewTimedTotp creates new Totp structure with custom time.
func (*Totp) GenerateCode ¶
GenerateCode generates Steam TOTP code which is always 5 symbols.
func (*Totp) SharedSecret ¶
SharedSecret returns shared secret of Totp structure.
Click to show internal directories.
Click to hide internal directories.