internal

package
v0.0.0-...-506a490 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Otp

type Otp struct {
	Code      string
	ExpiresAt time.Time
}

type OtpParameter

type OtpParameter interface {
	Data() OtpParameterData
	Bytes() []byte
}

type OtpParameterData

type OtpParameterData struct {
	Secret        []byte
	Name          string
	Issuer        string
	Algorithm     func() hash.Hash
	AlgorithmName string
	Digits        int
	Type          OtpParameterType
	Counter       uint64
}

func (OtpParameterData) Generate

func (op OtpParameterData) Generate() (string, error)

type OtpParameterType

type OtpParameterType struct {
	IsTotp bool
	IsHotp bool
}

type Payload

type Payload struct {
	OtpParameters []OtpParameter
	Version       int32
	BatchSize     int32
	BatchIndex    int32
	BatchId       int32
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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