{"id":19258405,"url":"https://github.com/maurodelazeri/google-authenticator","last_synced_at":"2026-06-20T05:31:45.797Z","repository":{"id":150738594,"uuid":"159671582","full_name":"maurodelazeri/google-authenticator","owner":"maurodelazeri","description":"Generate Google Authentication Codes with golang","archived":false,"fork":false,"pushed_at":"2018-11-29T13:47:18.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-23T18:15:29.414Z","etag":null,"topics":["auth","golang","google-authenticator","opt"],"latest_commit_sha":null,"homepage":null,"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/maurodelazeri.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":"2018-11-29T13:35:33.000Z","updated_at":"2021-03-04T06:23:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"b3c00607-2265-4187-a31c-c919424277be","html_url":"https://github.com/maurodelazeri/google-authenticator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/maurodelazeri/google-authenticator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maurodelazeri%2Fgoogle-authenticator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maurodelazeri%2Fgoogle-authenticator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maurodelazeri%2Fgoogle-authenticator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maurodelazeri%2Fgoogle-authenticator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maurodelazeri","download_url":"https://codeload.github.com/maurodelazeri/google-authenticator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maurodelazeri%2Fgoogle-authenticator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34558893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-20T02:00:06.407Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["auth","golang","google-authenticator","opt"],"created_at":"2024-11-09T19:13:16.712Z","updated_at":"2026-06-20T05:31:45.780Z","avatar_url":"https://github.com/maurodelazeri.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# google-authenticator\n\nGenerate Google Authentication Codes with golang\n\n```\ngo get github.com/maurodelazeri/google-authenticator\n```\n\nInsert into the `secret` file the secret generated by your counterpart\n\n\n```go\npackage main\n\nimport (\n\t\"io/ioutil\"\n\t\"log\"\n\t\"os\"\n\n\t\"github.com/maurodelazeri/google-authenticator\"\n)\n\nfunc main() {\n\tdata, err := ioutil.ReadFile(\"secret\")\n\tif err != nil {\n\t\tlog.Print(err)\n\t\tos.Exit(1)\n\t}\n\tsecret := string(data)\n\totp := authenticator.GetTOTPToken(secret)\n\tlog.Printf(otp)\n}\n```\n\n```\n$ go run main.go\n2018/11/29 08:43:50 153071\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaurodelazeri%2Fgoogle-authenticator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaurodelazeri%2Fgoogle-authenticator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaurodelazeri%2Fgoogle-authenticator/lists"}