hotp

package
v0.0.0-...-cb7ce38 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Secret    string
	Counter   uint64
	Digits    int
	Algorithm string
}

type HOTP

type HOTP struct {
	Config Config
}

func New

func New(config Config) *HOTP

func (*HOTP) Generate

func (h *HOTP) Generate(options Options) (string, error)

type Options

type Options struct {
	Issuer      string
	AccountName string
}

Jump to

Keyboard shortcuts

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