totp

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TOTP

type TOTP struct {
	oath.OTP
	// contains filtered or unexported fields
}

func New

func New(seed string, len int, interval uint64) *TOTP

func (*TOTP) Generate

func (totp *TOTP) Generate() string

func (*TOTP) GenerateCustom

func (totp *TOTP) GenerateCustom(t time.Time) string

func (*TOTP) Validate

func (totp *TOTP) Validate(otp string) bool

func (*TOTP) ValidateCustom

func (totp *TOTP) ValidateCustom(otp string, t time.Time) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL