Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dgryski/dgoogauth
/ functions
Functions
13 in github.com/dgryski/dgoogauth
⨍
Functions
13
◇
Types & classes
2
↓ 4 callers
Function
ComputeCode
Much of this code assumes int == int64, which probably is not the case. ComputeCode computes the response code for a 64-bit challenge 'value' using th
googauth.go:27
↓ 3 callers
Method
Authenticate
Authenticate a one-time-password against the given OTPConfig Returns true/false if the authentication was successful. Returns error if the password is
googauth.go:135
↓ 3 callers
Method
checkTotpCode
(t0, code int)
googauth.go:98
↓ 2 callers
Method
ProvisionURIWithIssuer
ProvisionURIWithIssuer generates a URI that can be turned into a QR code to configure a Google Authenticator mobile app. It respects the recommendatio
googauth.go:185
↓ 2 callers
Method
checkHotpCode
(code int)
googauth.go:81
↓ 2 callers
Method
checkScratchCodes
(code int)
googauth.go:66
Method
ProvisionURI
ProvisionURI generates a URI that can be turned into a QR code to configure a Google Authenticator mobile app.
googauth.go:176
Function
TestAuthenticate
(t *testing.T)
googauth_test.go:160
Function
TestCode
(t *testing.T)
googauth_test.go:23
Function
TestHotpCode
(t *testing.T)
googauth_test.go:61
Function
TestProvisionURI
(t *testing.T)
googauth_test.go:225
Function
TestScratchCode
(t *testing.T)
googauth_test.go:35
Function
TestTotpCode
(t *testing.T)
googauth_test.go:95