{"id":17967175,"url":"https://github.com/amdzy/go-otp","last_synced_at":"2025-04-03T21:28:03.726Z","repository":{"id":259864783,"uuid":"879669947","full_name":"amdzy/go-otp","owner":"amdzy","description":"Go One-Time Password Library ","archived":false,"fork":false,"pushed_at":"2024-10-29T12:34:12.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-09T09:29:16.619Z","etag":null,"topics":["2fa","go","hotp","mfa","totp"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amdzy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-28T10:44:43.000Z","updated_at":"2024-10-29T12:34:15.000Z","dependencies_parsed_at":"2024-10-28T14:09:46.669Z","dependency_job_id":"e53c486b-f12f-40d9-8a79-6bbe095dd040","html_url":"https://github.com/amdzy/go-otp","commit_stats":null,"previous_names":["amdzy/go-otp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amdzy%2Fgo-otp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amdzy%2Fgo-otp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amdzy%2Fgo-otp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amdzy%2Fgo-otp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amdzy","download_url":"https://codeload.github.com/amdzy/go-otp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247081325,"owners_count":20880408,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["2fa","go","hotp","mfa","totp"],"created_at":"2024-10-29T14:04:25.512Z","updated_at":"2025-04-03T21:28:03.678Z","avatar_url":"https://github.com/amdzy.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Gotp\n============================================\n\nGotp is a Python library for generating and verifying one-time passwords. It can be used to implement two-factor (2FA)\nor multi-factor (MFA) authentication methods in web applications and in other systems that require users to log in.\n\nOpen MFA standards are defined in `RFC 4226 \u003chttps://tools.ietf.org/html/rfc4226\u003e`_ (HOTP: An HMAC-Based One-Time\nPassword Algorithm) and in `RFC 6238 \u003chttps://tools.ietf.org/html/rfc6238\u003e`_ (TOTP: Time-Based One-Time Password\nAlgorithm). Gotp implements server-side support for both of these standards. Client-side support can be enabled by\nsending authentication codes to users over SMS or email (HOTP) or, for TOTP, by instructing users to use `Google\nAuthenticator \u003chttps://en.wikipedia.org/wiki/Google_Authenticator\u003e`_, `Authy \u003chttps://www.authy.com/\u003e`_, or another\ncompatible app. Users can set up auth tokens in their apps easily by using their phone camera to scan `otpauth://\n\u003chttps://github.com/google/google-authenticator/wiki/Key-Uri-Format\u003e`_ QR codes provided by Gotp.\n\nImplementers should read and follow the `HOTP security requirements \u003chttps://tools.ietf.org/html/rfc4226#section-7\u003e`_\nand `TOTP security considerations \u003chttps://tools.ietf.org/html/rfc6238#section-5\u003e`_ sections of the relevant RFCs. At\nminimum, application implementers should follow this checklist:\n\n- Ensure transport confidentiality by using HTTPS\n- Ensure HOTP/TOTP secret confidentiality by storing secrets in a controlled access database\n- Deny replay attacks by rejecting one-time passwords that have been used by the client (this requires storing the most\n  recently authenticated timestamp, OTP, or hash of the OTP in your database, and rejecting the OTP when a match is\n  seen)\n- Throttle (rate limit) brute-force attacks against your application's login functionality (see RFC 4226, section 7.3)\n\nWe also recommend that implementers read the\n`OWASP Authentication Cheat Sheet\n\u003chttps://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Authentication_Cheat_Sheet.md\u003e`_ and\n`NIST SP 800-63-3: Digital Authentication Guideline \u003chttps://pages.nist.gov/800-63-3/\u003e`_ for a high level overview of\nauthentication best practices.\n\n[GOTP](https://github.com/amdzy/go-otp)  was inspired by PyOTP.\n\nQuick overview of using One Time Passwords on your phone\n--------------------------------------------------------\n\n* OTPs involve a shared secret, stored both on the phone and the server\n* OTPs can be generated on a phone without internet connectivity\n* OTPs should always be used as a second factor of authentication (if your phone is lost, you account is still secured\n  with a password)\n* Google Authenticator and other OTP client apps allow you to store multiple OTP secrets and provision those using a QR\n  Code\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famdzy%2Fgo-otp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famdzy%2Fgo-otp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famdzy%2Fgo-otp/lists"}