oath

package module
v0.0.0-...-59df698 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Interval int64 = 30
)

Variables

This section is empty.

Functions

func TOTP

func TOTP(key []byte) int

return TOTP

Types

type Oath

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

func New

func New(key string) *Oath

func (*Oath) Now

func (totp *Oath) Now() int

return TOTP

func (*Oath) Rfc

func (totp *Oath) Rfc(numb uint64) int

return RFC 4226 HOTP

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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