totpkit

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckCode

func CheckCode(secret string, period int64, digits int, targetCode string) bool

func CheckGoogleCode

func CheckGoogleCode(secret string, targetCode string) bool

func GenerateCodeByPeriod

func GenerateCodeByPeriod(secret string, second int64, digits int) (string, error)

func GenerateCodeByTime

func GenerateCodeByTime(secret string, period int64, digits int) (string, error)

otpauth://totp/Google%3Ayourname@gmail.com?secret=xxxx&issuer=Google

func GenerateGoogleCode

func GenerateGoogleCode(secret string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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