Registry / auth / pquerna-otp

pquerna-otp

JSON →
library1.5.0gogounverified

Package otp implements both HOTP and TOTP based one time passcodes in a Google Authenticator compatible manner.

go get github.com/pquerna/otp
INSTALL
IMPORT
SIG · PQUERNA-OTP
P
pquerna-otp
authgov1.5.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

otp
github.com/pquerna/otp

Generates a TOTP key for use with Google Authenticator.

package main import ( "fmt" "github.com/pquerna/otp/totp" ) func main() { key, err := totp.Generate(totp.GenerateOpts{ Issuer: "Example", AccountName: "user@example.com", }) if err != nil { panic(err) } fmt.Println(key.Secret()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.5.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
25 hits · last 30 days
node
22
Amazon
1
Resources
pquerna-otp — go get pquerna-otp · libregistry