{"id":9315027,"name":"github.com/2lambda123/2fa","ecosystem":"go","description":"2fa is a two-factor authentication agent.\n\nUsage:\n\n“2fa -add name” adds a new key to the 2fa keychain with the given name.\nIt prints a prompt to standard error and reads a two-factor key from standard input.\nTwo-factor keys are short case-insensitive strings of letters A-Z and digits 2-7.\n\nBy default the new key generates time-based (TOTP) authentication codes;\nthe -hotp flag makes the new key generate counter-based (HOTP) codes instead.\n\nBy default the new key generates 6-digit codes; the -7 and -8 flags select\n7- and 8-digit codes instead.\n\n“2fa -list” lists the names of all the keys in the keychain.\n\n“2fa name” prints a two-factor authentication code from the key with the\ngiven name. If “-clip” is specified, 2fa also copies the code to the system\nclipboard.\n\nWith no arguments, 2fa prints two-factor authentication codes from all\nknown time-based keys.\n\nThe default time-based authentication codes are derived from a hash of\nthe key and the current time, so it is important that the system clock have\nat least one-minute accuracy.\n\nThe keychain is stored unencrypted in the text file $HOME/.2fa.\n\nDuring GitHub 2FA setup, at the “Scan this barcode with your app” step,\nclick the “enter this text code instead” link. A window pops up showing\n“your two-factor secret,” a short string of letters and digits.\n\nAdd it to 2fa under the name github, typing the secret at the prompt:\n\nThen whenever GitHub prompts for a 2FA code, run 2fa to obtain one:\n\nOr to type less:","homepage":"https://github.com/2lambda123/2fa","licenses":"BSD-3-Clause","normalized_licenses":["BSD-3-Clause"],"repository_url":"https://github.com/2lambda123/2fa","keywords_array":[],"namespace":"github.com/2lambda123","versions_count":3,"first_release_published_at":"2017-11-29T01:56:10.000Z","latest_release_published_at":"2021-01-15T21:07:42.000Z","latest_release_number":"v1.2.0","last_synced_at":"2026-03-20T05:47:21.865Z","created_at":"2024-03-27T04:20:06.735Z","updated_at":"2026-03-20T05:47:21.866Z","registry_url":"https://pkg.go.dev/github.com/2lambda123/2fa","install_command":"go get github.com/2lambda123/2fa","documentation_url":"https://pkg.go.dev/github.com/2lambda123/2fa#section-documentation","metadata":{},"repo_metadata":{"uuid":"691677610","full_name":"2lambda123/2fa","owner":"2lambda123","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-09T23:11:46.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-02T10:35:57.281Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/2lambda123.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-09-14T16:53:09.000Z","updated_at":"2023-09-14T16:53:24.000Z","dependencies_parsed_at":"2024-01-10T00:28:13.292Z","dependency_job_id":"da0156ae-0550-43b8-be43-e72a48824650","html_url":"https://github.com/2lambda123/2fa","commit_stats":null,"previous_names":["2lambda123/2fa"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2lambda123%2F2fa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2lambda123%2F2fa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2lambda123%2F2fa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2lambda123%2F2fa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/2lambda123","download_url":"https://codeload.github.com/2lambda123/2fa/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":199752325,"owners_count":13634285,"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"},"owner_record":{"login":"2lambda123","name":"Robert Bongart (MSc MSc MA)","uuid":"54554557","kind":"user","description":"Quantum Computing\r\n\r\n+48 600 55 88 80 \r\n\r\n500 Terry Francois Street, 6th Floor. San Francisco, CA 94158\r\n\r\nOpus Dei\r\n","email":"","website":"https://about.me/Robert_Bongart","location":"Delaware","twitter":null,"company":"Heronet","icon_url":"https://avatars.githubusercontent.com/u/54554557?u=76c833839995ea2711e721ad9bce415a3f586993\u0026v=4","repositories_count":5097,"last_synced_at":"2024-04-02T10:12:53.593Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/2lambda123","funding_links":[],"total_stars":50,"followers":13,"following":11,"created_at":"2023-04-18T23:28:21.460Z","updated_at":"2024-04-02T10:14:46.119Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/2lambda123","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/2lambda123/repositories"},"tags":[{"name":"v1.2.0","sha":"a3704cafc7d523c8ea371199636cab38e3d37ba4","kind":"commit","published_at":"2021-01-15T21:07:42.000Z","download_url":"https://codeload.github.com/2lambda123/2fa/tar.gz/v1.2.0","html_url":"https://github.com/2lambda123/2fa/releases/tag/v1.2.0","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2lambda123%2F2fa/tags/v1.2.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2lambda123%2F2fa/tags/v1.2.0/manifests"},{"name":"v1.1.0","sha":"de5e8c711e4667c392341d5fdb0dc0b8a4e7771f","kind":"commit","published_at":"2018-01-04T16:17:54.000Z","download_url":"https://codeload.github.com/2lambda123/2fa/tar.gz/v1.1.0","html_url":"https://github.com/2lambda123/2fa/releases/tag/v1.1.0","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2lambda123%2F2fa/tags/v1.1.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2lambda123%2F2fa/tags/v1.1.0/manifests"},{"name":"v1.0.0","sha":"8e6a1a7a78773bb26f9479ed49a5144a7c91c5a6","kind":"commit","published_at":"2017-11-29T01:56:10.000Z","download_url":"https://codeload.github.com/2lambda123/2fa/tar.gz/v1.0.0","html_url":"https://github.com/2lambda123/2fa/releases/tag/v1.0.0","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2lambda123%2F2fa/tags/v1.0.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2lambda123%2F2fa/tags/v1.0.0/manifests"}]},"repo_metadata_updated_at":"2024-04-28T14:04:09.181Z","dependent_packages_count":0,"downloads":null,"downloads_period":null,"dependent_repos_count":0,"rankings":{"downloads":null,"dependent_repos_count":9.393034238693698,"dependent_packages_count":8.328401262841464,"stargazers_count":null,"forks_count":null,"docker_downloads_count":null,"average":8.86071775076758},"purl":"pkg:golang/github.com/2lambda123/2fa","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/go/github.com/2lambda123/2fa","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/go/github.com/2lambda123/2fa","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/go/github.com/2lambda123/2fa/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":null,"versions_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2F2lambda123%2F2fa/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2F2lambda123%2F2fa/version_numbers","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2F2lambda123%2F2fa/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2F2lambda123%2F2fa/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2F2lambda123%2F2fa/codemeta","maintainers":[]}