otpauth

package
v0.0.0-...-027d8c7 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeSecret

func DecodeSecret(s string) ([]byte, error)

func EncodeSecret

func EncodeSecret(s []byte) string

func GenOTP

func GenOTP(a crypto.Hash, s []byte, f int64) (int64, error)

func HMAC

func HMAC(a crypto.Hash, k []byte, t []byte) ([]byte, error)

func Itob

func Itob(n int64) []byte

func ZeroPadding

func ZeroPadding(v int64, d 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