otp: maze.io/x/otp Index | Files

package otp

import "maze.io/x/otp"

Package otp is a bare bones RFC4226 / RFC6238 implementation.

Index

Package Files

otp.go

func HOTP Uses

func HOTP(secret []byte, counter int64, size int) string

HOTP generates a HMAC-based One-Time Password

func TOTP Uses

func TOTP(secret []byte, period, size int) string

TOTP generates a Time-based One-Time Password

Package otp imports 6 packages (graph). Updated 2019-01-28. Refresh now. Tools for package owners.