{"id":18513189,"url":"https://github.com/yeojz/otplib-cli","last_synced_at":"2025-05-14T12:17:52.624Z","repository":{"id":57316773,"uuid":"87702007","full_name":"yeojz/otplib-cli","owner":"yeojz","description":":computer: Command-line tool to generate / verify OTP token :key:","archived":false,"fork":false,"pushed_at":"2017-04-15T06:24:34.000Z","size":30,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-27T11:16:21.601Z","etag":null,"topics":["2fa","cli","google-authenticator","hotp","totp"],"latest_commit_sha":null,"homepage":"","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/yeojz.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":"2017-04-09T10:56:44.000Z","updated_at":"2019-10-04T09:38:17.000Z","dependencies_parsed_at":"2022-08-25T20:40:58.236Z","dependency_job_id":null,"html_url":"https://github.com/yeojz/otplib-cli","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeojz%2Fotplib-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeojz%2Fotplib-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeojz%2Fotplib-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeojz%2Fotplib-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yeojz","download_url":"https://codeload.github.com/yeojz/otplib-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239225920,"owners_count":19603197,"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","cli","google-authenticator","hotp","totp"],"created_at":"2024-11-06T15:36:47.702Z","updated_at":"2025-02-17T03:19:54.589Z","avatar_url":"https://github.com/yeojz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# otplib-cli\n\n\u003e Command-line tool for OTP token generation and verification\n\n[![npm][npm-badge]][npm-link]\n\n## Install\n\n```\n$ npm install -g otplib-cli\n```\n\n## Usage\n\n```\nUsage: otplib [options] [command]\n\n\nCommands:\n\n  init [options]            initialise a new configuration\n  generate [options]        generate new tokens\n  verify [options] [token]  validate a token against the setting or configuration\n  qrcode [options]          generate a QR Code from configuration\n  encrypt [secret]          encrypt secret to store in config\n  decrypt [secret]          decrypt secret from config\n\nOptions:\n\n  -h, --help                 output usage information\n  -V, --version              output the version number\n  -p, --password [password]  password to encrypt/decrypt the secret\n  -k, --secret [key]         provide a secret key\n  -c, --config [path]         path to configuration file\n  -m, --mode [mode]          operation mode. (hotp | totp | authenticator)\n  -d, --digits [number]      number of digits in token\n  -a, --algorithm [type]     algorithm to generate for totp (sha1 | sha256 | sha512)\n  -s, --step [number]        time step (totp / authenticator)\n```\n\nFor individual command options, you can run `-h` for each of them. i.e.\n\n```\n$ otplib init -h\n$ otplib generate -h\n$ otplib verify -h\n$ otplib qrcode -h\n```\n\n## Related\n\n-   [otplib](https://github.com/yeojz/otplib) - API for this module\n\n## License\n\n`otplib-cli` is [MIT licensed](./LICENSE)\n\n[npm-badge]: https://img.shields.io/npm/v/otplib-cli.svg?style=flat-square\n[npm-link]: https://www.npmjs.com/package/otplib-cli\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyeojz%2Fotplib-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyeojz%2Fotplib-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyeojz%2Fotplib-cli/lists"}