totp

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package totp contains the function that generates a TOTP code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TOTP

func TOTP(key []byte, t time.Time) string

TOTP generates a TOTP for the given key at time t, in the manner commonly used by most websites (SHA1-based 6-digit code padded with 0s). This implementation is based on RFC 4226 and RFC 6238.

Types

This section is empty.

Jump to

Keyboard shortcuts

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