otp

package
v0.0.0-...-2acee33 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

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
}

func NewHOTP

func NewHOTP(hash string, digits int, counter int64) *HOTP

func (*HOTP) GeneratePassCode

func (t *HOTP) GeneratePassCode(key string) (code string, err error)

type TOTP

type TOTP struct {
	// contains filtered or unexported fields
}

func NewTOTP

func NewTOTP(hash string, digits int, period int64) *TOTP

func (*TOTP) GeneratePassCode

func (t *TOTP) GeneratePassCode(key string) (string, error)

Jump to

Keyboard shortcuts

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