totp

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

This package generates time-based one-time password all []byte in this program are treated as Big Endian

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OTP

type OTP struct {
	Name     string
	Code     string
	Key      []byte
	Password uint32
	Timer    int64
}

func New

func New(name, code string) (otp *OTP, err error)

func (*OTP) Refresh

func (otp *OTP) Refresh() (err error)

Jump to

Keyboard shortcuts

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