{"id":16189104,"url":"https://github.com/jhermsmeier/hotp-totp-cli","last_synced_at":"2025-07-27T23:36:10.454Z","repository":{"id":57266841,"uuid":"174177335","full_name":"jhermsmeier/hotp-totp-cli","owner":"jhermsmeier","description":"HMAC- and Time-Based One-Time Password (HOTP / TOTP) Command Line Interface","archived":false,"fork":false,"pushed_at":"2021-07-03T14:45:05.000Z","size":14,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-08T06:16:27.361Z","etag":null,"topics":["authenticator","cli","hotp","one-time-password","otp","otpauth","totp","two-factor-authentication"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/jhermsmeier.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-06T16:08:24.000Z","updated_at":"2022-01-05T13:57:54.000Z","dependencies_parsed_at":"2022-08-25T03:41:16.992Z","dependency_job_id":null,"html_url":"https://github.com/jhermsmeier/hotp-totp-cli","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/jhermsmeier%2Fhotp-totp-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhermsmeier%2Fhotp-totp-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhermsmeier%2Fhotp-totp-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhermsmeier%2Fhotp-totp-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jhermsmeier","download_url":"https://codeload.github.com/jhermsmeier/hotp-totp-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234037554,"owners_count":18769768,"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":["authenticator","cli","hotp","one-time-password","otp","otpauth","totp","two-factor-authentication"],"created_at":"2024-10-10T07:34:02.789Z","updated_at":"2025-01-15T12:20:06.880Z","avatar_url":"https://github.com/jhermsmeier.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HOTP TOTP CLI\n[![npm](https://flat.badgen.net/npm/v/hotp-totp-cli)](https://npmjs.com/package/hotp-totp-cli)\n[![npm license](https://flat.badgen.net/npm/license/hotp-totp-cli)](https://npmjs.com/package/hotp-totp-cli)\n[![npm downloads](https://flat.badgen.net/npm/dm/hotp-totp-cli)](https://npmjs.com/package/hotp-totp-cli)\n\nHMAC- and Time-Based One-Time Password (HOTP / TOTP) Command Line Interface\n\n## Install via [npm](https://npmjs.com)\n\n```sh\n$ npm install --global hotp-totp-cli\n```\n\nWill install two CLI utilities, `hotp` and `totp`.\n\n## Usage\n\nThe key can be either a **base32** ([RFC 3548]) encoded string, or an `optauth:` URI in [Key URI Format]\n\n[RFC 3548]: http://tools.ietf.org/html/rfc3548\n[Key URI Format]: https://github.com/google/google-authenticator/wiki/Key-Uri-Format\n\n### totp\n\n```\nUsage: totp [options] \u003ckey\u003e\n\nOptions:\n\n  -d, --digits       Number of passcode digits to generate [6-10] (Default: 6)\n  -a, --algorithm    HMAC algorithm to use (Default: sha1)\n  -p, --period       Seconds the passcode is valid for (Default: 30)\n  -t, --time         Time for which to calculate the passcode\n  -e, --epoch        T-0\n\n  -h, --help\n  -v, --version\n\n```\n\n### hotp\n\n```\nUsage: hotp [options] \u003ckey\u003e\n\nOptions:\n\n  -c, --counter      Counter value to calculate the passcode for\n  -a, --algorithm    HMAC algorithm to use (Default: sha1)\n  -d, --digits       Number of passcode digits to generate [6-10] (Default: 6)\n\n  -h, --help\n  -v, --version\n\n```\n\n## Examples\n\n### Publishing to npm\n\nAvoid manually typing your OTP token with a CLI credential manager (i.e. [pass]):\n\n[pass]: https://www.passwordstore.org/\n\n```bash\nnpm publish --otp $( totp $( pass 2fa/npm.key ) )\n```\n\n**NOTE:** This is probably a bad idea if your GPG passphrase is stored anywhere else except your head.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjhermsmeier%2Fhotp-totp-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjhermsmeier%2Fhotp-totp-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjhermsmeier%2Fhotp-totp-cli/lists"}