{"id":13678745,"url":"https://github.com/krissrex/google-authenticator-exporter","last_synced_at":"2025-04-29T15:32:53.287Z","repository":{"id":40427129,"uuid":"266134731","full_name":"krissrex/google-authenticator-exporter","owner":"krissrex","description":"Get the TOTP secrets exported by Google Authenticator","archived":false,"fork":false,"pushed_at":"2024-09-24T01:48:55.000Z","size":205,"stargazers_count":428,"open_issues_count":4,"forks_count":59,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-11T21:37:47.808Z","etag":null,"topics":["2fa","decode","export","mfa","migrate","nodejs","secret-keys","totp"],"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/krissrex.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-22T14:46:59.000Z","updated_at":"2024-11-11T12:05:03.000Z","dependencies_parsed_at":"2024-08-02T13:17:16.224Z","dependency_job_id":"391b4025-a59c-4ed9-a5a0-fbb4efc3b692","html_url":"https://github.com/krissrex/google-authenticator-exporter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krissrex%2Fgoogle-authenticator-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krissrex%2Fgoogle-authenticator-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krissrex%2Fgoogle-authenticator-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krissrex%2Fgoogle-authenticator-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krissrex","download_url":"https://codeload.github.com/krissrex/google-authenticator-exporter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251529599,"owners_count":21603987,"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","decode","export","mfa","migrate","nodejs","secret-keys","totp"],"created_at":"2024-08-02T13:00:57.733Z","updated_at":"2025-04-29T15:32:53.012Z","avatar_url":"https://github.com/krissrex.png","language":"JavaScript","readme":"# Google Authenticator secret extractor\n\n\u003e **Note:** This project and I are in no way affiliated with Google.\n\nThis lets you decode the URI generated by Google Authenticator.\n\n![Example](example.png)\n\n\n## Guide\n\n**Prerequisites:**\n* Your phone with Google Authenticator\n* A camera\n* [Nodejs installed](https://nodejs.org/en/download/)\n* A QR scanner\n    * Android: [ZXing](https://play.google.com/store/apps/details?id=com.google.zxing.client.android)\n    * Mac/Win/Linux: [ZBar](https://github.com/mchehab/zbar) (See [issue 22](https://github.com/krissrex/google-authenticator-exporter/issues/22) for usage)\n\n\n**Getting the secret keys:**\n1. Open the Google Authenticator app.\n2. Click Settings (three dots, top right), and *Transfer accounts*.\n3. Select *Export accounts*.\n4. Authenticate, if prompted.\n5. Select the accounts you want to export (default is *all*).\n6. Click *Next*, and capture a picture of the QR code.\n    * **Note:** Screenshots are disabled by the app.\n    Use your laptop webcam, a digital camera or another phone.\n7. Click *Next*, and repeat step 6 for all QR codes shown (if you have many accounts).\n8. Decode the QR codes to obtain the `otpauth-migration://offline?data=...` URI.\n9. Clone/Download this repository.\n10. Run `npm install`.\n11. For generating json run`npm run start`, for generating qr-codes run `npm run start:qrcode`.\n12. Enter the URI when prompted\n13. If you chose json and you want to save the output, enter `y` and `accounts.json`\n\n## Use a docker image\n\n**Prerequisites:**\n\nBuild the docker image locally:\n```sh\ndocker build . --tag google-authenticator-exporter:0.0.1\n```\n\n**Decode an obtained QR code URI:**\n1. Run the docker container locally:\n```sh\ndocker run -it --rm google-authenticator-exporter:0.0.1\n```\n2. Enter the URI when prompted\n3. Since you haven't mounted a volume, you cannot save the output using the above command, so leave the next questions empty (hit Enter).\n4. The output to json will be printed out to terminal.\n\n## References\n\nI found the protobuff code in https://github.com/beemdevelopment/Aegis/pull/406/files.\nThe opensource Google Authenticator does not seem to have this yet (*5th May 2020*): https://github.com/google/google-authenticator-android/issues/118.\n\nA QR scanner app for Android that works is https://play.google.com/store/apps/details?id=com.google.zxing.client.android.\n\nThe Base32 format is specified in https://tools.ietf.org/html/rfc3548. There are multiple ways to implement Base32.\n\nLicense: MIT,\n**BUT** this uses GNU GPL 3 code as a dependency (https://github.com/alexbakker/Aegis/blob/56bde0e19b51568a7050f6cb56085a1bb38c5a9e/app/src/main/proto/google_auth.proto) (https://github.com/alexbakker/Aegis/blob/56bde0e19b51568a7050f6cb56085a1bb38c5a9e/LICENSE)","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrissrex%2Fgoogle-authenticator-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrissrex%2Fgoogle-authenticator-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrissrex%2Fgoogle-authenticator-exporter/lists"}