Documentation ¶
Overview ¶
Package g2fa implements temporary time based password generation for Google Authenticator app. Works accordingly to RFC 4226 and https://en.wikipedia.org/wiki/Google_Authenticator
See README for details.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateKey ¶
GenerateKey generates random crypto key of requested length in bytes.
func GetTimedAuthCode ¶
GetTimedAuthCode returns a temp password valid for a 30 seconds window.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.