totp

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateTOTP

func GenerateTOTP(secret string, t time.Time) (string, error)

GenerateTOTP generates a TOTP from a TOTP secret and time. If the time is nil, then time.Now will be used

func RoundTime

func RoundTime(now time.Time) time.Time

Types

This section is empty.

Jump to

Keyboard shortcuts

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