gootpo

package module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: MIT Imports: 7 Imported by: 0

README

gootpo

ci workflow

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HOTP

func HOTP(count uint64, opt *Opt) (string, error)

HOTP calculating the HOTP

func TOTP

func TOTP(opt *Opt) (string, error)

TOTP calculating the TOTP

Types

type Opt

type Opt struct {
	Seed     string
	Length   int
	Interval int
	Offset   int
	Algo     func() hash.Hash
	Now      func() int64
	Decoder  func(string) ([]byte, error)
}

Opt is option

func DefaultOpt

func DefaultOpt(seed string) *Opt

DefaultOpt default option

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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