{"id":17108398,"url":"https://github.com/moldabekov/gauth","last_synced_at":"2025-04-13T02:47:02.939Z","repository":{"id":57563872,"uuid":"116776830","full_name":"moldabekov/gauth","owner":"moldabekov","description":"🔑 Command line 2FA Authentication","archived":false,"fork":false,"pushed_at":"2022-09-16T02:24:22.000Z","size":10,"stargazers_count":5,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-13T02:46:13.700Z","etag":null,"topics":["2fa","golang","google-authenticator"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moldabekov.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}},"created_at":"2018-01-09T06:41:28.000Z","updated_at":"2023-05-11T11:55:44.000Z","dependencies_parsed_at":"2022-09-16T13:34:20.524Z","dependency_job_id":null,"html_url":"https://github.com/moldabekov/gauth","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moldabekov%2Fgauth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moldabekov%2Fgauth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moldabekov%2Fgauth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moldabekov%2Fgauth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moldabekov","download_url":"https://codeload.github.com/moldabekov/gauth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248657859,"owners_count":21140843,"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","golang","google-authenticator"],"created_at":"2024-10-14T16:05:15.140Z","updated_at":"2025-04-13T02:47:02.913Z","avatar_url":"https://github.com/moldabekov.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/moldabekov/gauth.svg?branch=master)](https://travis-ci.org/moldabekov/gauth)\n[![Go Report Card](https://goreportcard.com/badge/github.com/moldabekov/gauth)](https://goreportcard.com/report/github.com/moldabekov/gauth)\n## gauth is a two-factor authentication agent.\n\n### Installation:\n\nYou have 2 ways to get `gauth`:\n\n0. Grab `gauth` from [Release page](https://github.com/moldabekov/gauth/releases) and place it in your `$PATH`.\n\n1. Please ensure that you set `$GOPATH` and have `$GOPATH/bin` in your `$PATH`. Then run the following command:\n\n\t`go get -u github.com/moldabekov/gauth`\n\t\n### Usage:\n\n\tgauth -add [-hotp] name\n\tgauth -list\n\tgauth name\n\nTo add a new key to keychain use \"gauth -add name\", where name is a given service name (such as gmail, github and so on).\nIt'll prompt a 2fa key from stdin. 2fa keys are case-insensitive strings [A-Z2-7].\n\nDefault generation algorithm is time based auth codes (TOTP - the same as Google Authenticator).\n\nThere is also *EXPERIMENTAL* support of counter based auth codes (HOTP).\n\nTo list all entries in the keychain use `gauth -list`\n\nTo print certain 2fa auth code use `gauth name`\n\nIf no arguments are provided, `gauth` prints all 2fa TOTP auth codes.\n\n**IMPORTANT NOTE:**\n\nTOTP auth codes are derived from key hash and current time. Please ensure that system clock is adjusted via NTP.\nAcceptable fault threshold is about ~1 min.\n\nThe keychain itself is stored **UNENCRYPTED** in `$HOME/.gauth`.\nTake measures to encrypt your partitions (haven't you done this yet?)\n\n### Example\n\nWhile Google 2fa setup select \"enter this text code instead\" bypassing QR code scanning. You will get your 2fa secret - short string.\n\nAdd it to 2fa under the name google, typing the secret at the prompt:\n\n\t$ gauth -add google\n\tgauth key for google: \u003csecret\u003e\n\nWhenever Google prompts for a 2fa code, run gauth to obtain one:\n\n\t$ gauth google\n\t438163\n\n### Greetings\n - Golang team\n - Russ C.\n\n### Contributing\nAll PR and Issues are welcome\n\n### License\n(C) MIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoldabekov%2Fgauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoldabekov%2Fgauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoldabekov%2Fgauth/lists"}