hotp

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2025 License: MIT Imports: 1 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 {
	oath.OTP
}

func New

func New(seed string, len int) *HOTP

nolint:revive // Keeping parameter name for backward compatibility

func (*HOTP) Generate

func (h *HOTP) Generate(counter uint64) string

func (*HOTP) Validate

func (h *HOTP) Validate(otp string, counter uint64) bool

Jump to

Keyboard shortcuts

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