totp

package
v0.0.0-...-c1f397d Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package totp providers time-based one-time password management.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authenticate

func Authenticate(challenge int, secret string) (bool, error)

Authenticate will return true and not error if the TOTP (time-based) is valid. Any integers less than 6 characters will be padded to six.

func GenerateURL

func GenerateURL(username string, issuer string) (URI string, secret string, err error)

GenerateURL will return a URL that can be added to a QR code.

Types

This section is empty.

Jump to

Keyboard shortcuts

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