totphelper

package
v0.0.0-...-593c09c Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildTOTP

func BuildTOTP(uID string) (key *otp.Key, err error)

BuildTOTP generate

func GeneratePassCode

func GeneratePassCode(secret string) (string, error)

GeneratePassCode generate passcode

func GenerateTOTPCodes

func GenerateTOTPCodes(secret string) []string

GenerateTOTPCodes generate passcode

func VerifyPassCode

func VerifyPassCode(passcode string, keySecret string) (valid bool)

VerifyPassCode is used to verify pass code

Types

This section is empty.

Jump to

Keyboard shortcuts

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