util

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DIGIT_SIZE  int32 = 6
	SECRET_SIZE int32 = 10
)
View Source
const (
	TOTP_PERIOD int64 = 30
)

Variables

View Source
var B32NoPadding *base32.Encoding = base32.StdEncoding.WithPadding(base32.NoPadding)

Functions

func EncodeQuery

func EncodeQuery(v url.Values) string

func ParseCode

func ParseCode(code int64) string

Types

type SourceType

type SourceType string
const (
	TOTP SourceType = "totp"
	HOTP SourceType = "hotp"
)

Jump to

Keyboard shortcuts

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