{"id":51778735,"url":"https://github.com/kernc/totp","last_synced_at":"2026-07-20T09:30:49.845Z","repository":{"id":372253233,"uuid":"1306075601","full_name":"kernc/totp","owner":"kernc","description":"🔢 TOTP on-terminal PIN (token generator)","archived":false,"fork":false,"pushed_at":"2026-07-20T00:11:45.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-07-20T01:26:06.308Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kernc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-07-19T23:41:31.000Z","updated_at":"2026-07-20T00:11:48.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/kernc/totp","commit_stats":null,"previous_names":["kernc/totp"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/kernc/totp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernc%2Ftotp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernc%2Ftotp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernc%2Ftotp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernc%2Ftotp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kernc","download_url":"https://codeload.github.com/kernc/totp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernc%2Ftotp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35682455,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"ssl_error","status_checked_at":"2026-07-20T02:08:09.736Z","response_time":111,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-07-20T09:30:49.061Z","updated_at":"2026-07-20T09:30:49.840Z","avatar_url":"https://github.com/kernc.png","language":"Shell","funding_links":["https://github.com/sponsors/kernc"],"categories":[],"sub_categories":[],"readme":"TOTP On-Terminal PIN (generator)\n================================\n[![Build status](https://img.shields.io/github/actions/workflow/status/kernc/totp/ci.yml?branch=master\u0026style=for-the-badge)](https://github.com/kernc/totp/actions)\n[![Coverage: 100%](https://img.shields.io/badge/Covr-100%25-brightgreen?style=for-the-badge)](https://github.com/kernc/totp/actions)\n[![Language: shell / Bash](https://img.shields.io/badge/Lang-Shell-peachpuff?style=for-the-badge)](https://github.com/kernc/totp)\n[![Source lines of code](https://img.shields.io/badge/SLOC-275-skyblue?style=for-the-badge)](https://ghloc.vercel.app/kernc/totp)\n[![Script size](https://img.shields.io/badge/Size-8K-skyblue?style=for-the-badge)](https://github.com/kernc/totp)\n[![Stars](https://img.shields.io/github/stars/kernc/totp?color=silver\u0026style=for-the-badge\u0026label=%e2%ad%90)](https://github.com/kernc/totp)\n[![Sponsors](https://img.shields.io/github/sponsors/kernc?color=pink\u0026style=for-the-badge\u0026label=%e2%99%a5)](https://github.com/sponsors/kernc)\n[![Issues](https://img.shields.io/github/issues/kernc/totp?style=for-the-badge\u0026label=Bugs)](https://github.com/kernc/totp/issues)\n\n\nManage \"authenticator\" time-based OTP tokens most simply in your beloved terminal.\nWritten in somewhat dense POSIX Shell.\n\nOn disk, the secrets are encrypted with a password using OpenSSL AES256 CTR.\n\nThis project vendors the excellently concise [`totp` computer by **@KevCui**](https://github.com/KevCui/totp/blob/master/totp).\n\n\nInstallation\n------------\n```sh\n# Discover dependencies already installed\nsudo apt install openssl\n\n# Download the latest release and unpack into $HOME/.totp\nmkdir -p \"$HOME/.totp\"\ncurl -L 'https://github.com/kernc/totp/archive/master.tar.gz' |\n    tar -C \"$HOME/.totp\" -xvz --strip-components 1 --exclude .github\n```\n\n\nUsage\n-----\nAll of the contained are very simple scripts that (may) read lines on stdin\nand take no command line arguments.\n\nImport some QR codes using either `otpauth://` or\n`otpauth-migration://` URI scheme:\n```script\n$ sudo apt install zbar-tools\n$ zbarimg path/to/qr1.png\nQR-Code:otpauth://totp/Login?secret=GEZDGNBVGY3TQOIK\u0026issuer=Employer\n\n$ zbarimg path/to/qr*.png | grep -o otpauth.* \u003e otpauth_uris.list\n\n$ .totp/import \u003c otpauth_uris.list\nEnter PASSWORD:\n```\nYou pick a password for the encryption of secrets on disk.\nIf the password is blank, the secrets will be left plaintext (unsafe).\nYou can have different passwords for different secrets;\nsimply invoke `import` multiple times.\n\nAssuming your system time is correct, get the latest PIN tokens:\n```script\n$ .totp/totp\n123456\tEmployer/Login\n331666\tGoogle/auth\n012489\tCoinWallet/x\ntotp: Password unlocks 3/5 secrets\ntotp: New codes in 14 seconds\n```\nAs you can see again, you can have different passwords for different secrets.\n\nIf need arises, export to QR codes or plaintext URIs:\n```script\n$ .totp/export\ntotp_qr1.png\totpauth://...\ntotp_qr2.png\totpauth://...\ntotp_qr3.png\totpauth://...\n```\n\nSee the [test suite](https://github.com/kernc/totp/blob/master/lib/test.sh)\nfor more usage examples!\n\n\nEnvironment variables\n---------------------\n* **`PASSWORD=`** Preset the password to encrypt/decrypt the secrets\n  so that the program can run without asking.\n  If the password is empty, the secrets are left unencrypted.\n* **`SECURITY_TOKEN=`** If set, the password will be derived from a PKCS#11\n  **hardware security token** _object URL_\n  [matching this string](https://github.com/search?q=repo%3Akernc%2Ftotp+%24SECURITY_TOKEN\u0026type=code).\n  List available token object URL strings with:\n  ```shell\n  p11tool --list-token-urls | grep 'type=private'\n  ```\n  Runtime dependencies to use the feature:\n  ```shell\n  sudo apt install libengine-pkcs11-openssl\n  ```\n* **`SECRETS_DIR=`** Save/read secrets from this directory (default: `$HOME/.totp/secrets`).\n* **`VERBOSE=`** Make `totp` emit _three_ instead of two \u003ckbd\u003eTab\u003c/kbd\u003e-separated columns: PIN, label, and the full export URI.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkernc%2Ftotp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkernc%2Ftotp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkernc%2Ftotp/lists"}