An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 0.8% on proxy.golang.org
Top 0.1% dependent packages on proxy.golang.org
Top 0.1% dependent repos on proxy.golang.org
Top 2.1% forks on proxy.golang.org
Top 0.1% docker downloads on proxy.golang.org

proxy.golang.org : github.com/pquerna/otp

Package otp implements both HOTP and TOTP based one time passcodes in a Google Authenticator compatible manner. When adding a TOTP for a user, you must store the "secret" value persistently. It is recommended to store the secret in an encrypted field in your datastore. Due to how TOTP works, it is not possible to store a hash for the secret value like you would a password. To enroll a user, you must first generate an OTP for them. Google Authenticator supports using a QR code as an enrollment method: Validating a TOTP passcode is very easy, just prompt the user for a passcode and retrieve the associated user's previously stored secret.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/pquerna/otp
License: Apache-2.0
Latest release: 5 months ago
First release: almost 8 years ago
Namespace: github.com/pquerna
Dependent packages: 5,199
Dependent repositories: 5,517
Stars: 1,673 on GitHub
Forks: 177 on GitHub
Docker dependents: 545
Docker downloads: 4,362,556,163
See more repository details: repos.ecosyste.ms
Last synced: about 9 hours ago

    Loading...
    Readme
    Loading...