oath

package
v0.16.5 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2023 License: Apache-2.0 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(base32 bool, hash string, counter int64, length int) *HOTP

func (*HOTP) GeneratePassCode

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

type TOTP

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

func NewTOTP

func NewTOTP(base32 bool, hash string, length int, epoch int64, interval int64) *TOTP

func (*TOTP) GeneratePassCode

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

Jump to

Keyboard shortcuts

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