oath

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Oath

func Oath(secret string) (string, error)

func OathOtp

func OathOtp(secret string, b32 bool, digits int, nowSec, step, window int64) (ret []string, err error)

func Oaths

func Oaths(secret string, window int) (ret []string, err error)

func Validate

func Validate(secret, otp string, window int) (v bool, err error)

func ValidateOtp

func ValidateOtp(secret, otp string, b32 bool, digits int, nowSec, step, window int64) (bool, int64, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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