totp

package
v0.0.0-...-4ff37ba Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSetupURI

func CreateSetupURI(key []byte, issuer, accountName string, digits int, periodSecond int) string

func DynamicTruncate

func DynamicTruncate(hmacResult []byte) int64

func DynamicTruncateExplaination

func DynamicTruncateExplaination(hmacResult []byte) int64

func GenerateHMAC

func GenerateHMAC(key []byte, message []byte) []byte

func HOTP

func HOTP(key []byte, counter []byte, digit int) string

func TOTP

func TOTP(key []byte, timestamp time.Time, periodSecond int64, digit int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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