modulepackage
0.0.0-20190221195224-5a805980a5f3
Repository: https://github.com/dgryski/dgoogauth.git
Documentation: pkg.go.dev
# README
This is a Go implementation of the Google Authenticator library.
Copyright (c) 2012 Damian Gryski [email protected] This code is licensed under the Apache License, version 2.0
It implements the one-time-password algorithms specified in:
- RFC 4226 (HOTP: An HMAC-Based One-Time Password Algorithm)
- RFC 6238 (TOTP: Time-Based One-Time Password Algorithm)
You can learn more about the Google Authenticator library at its project page:
# Functions
ComputeCode computes the response code for a 64-bit challenge 'value' using the secret 'secret'.
# Variables
ErrInvalidCode indicate the supplied one-time code was not valid.