totp

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: 8 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
	TimeStep  int64
	Digits    int
	Algorithm string
}

type Options

type Options struct {
	Issuer      string
	AccountName string
}

type TOTP

type TOTP struct {
	Config Config
}

func New

func New(config Config) *TOTP

func (*TOTP) Generate

func (t *TOTP) Generate(options Options) (string, error)

Jump to

Keyboard shortcuts

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