{"id":23266163,"url":"https://github.com/raphiz/freeotp-backup","last_synced_at":"2025-06-21T23:34:44.762Z","repository":{"id":79285381,"uuid":"207235339","full_name":"raphiz/freeotp-backup","owner":"raphiz","description":"A simple python script to backup OTP tokens from the FreeOTP Android app","archived":false,"fork":false,"pushed_at":"2020-04-28T08:06:54.000Z","size":7,"stargazers_count":12,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-21T23:33:17.663Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raphiz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-09-09T06:01:39.000Z","updated_at":"2024-09-27T12:14:42.000Z","dependencies_parsed_at":"2023-05-25T03:15:27.214Z","dependency_job_id":null,"html_url":"https://github.com/raphiz/freeotp-backup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/raphiz/freeotp-backup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphiz%2Ffreeotp-backup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphiz%2Ffreeotp-backup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphiz%2Ffreeotp-backup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphiz%2Ffreeotp-backup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raphiz","download_url":"https://codeload.github.com/raphiz/freeotp-backup/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphiz%2Ffreeotp-backup/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261211678,"owners_count":23125542,"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":[],"created_at":"2024-12-19T15:53:11.600Z","updated_at":"2025-06-21T23:34:39.751Z","avatar_url":"https://github.com/raphiz.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Backup FreeOTP\n\nA simple python script to backup [OTP tokens](https://en.wikipedia.org/wiki/One-time_password)\nfrom the [FreeOTP Android app](https://play.google.com/store/apps/details?id=org.fedorahosted.freeotp).\n\nTo create backups you must use [adb](https://developer.android.com/studio/command-line/adb). This script just extracts the tokens from the backup archive and gereates qr codes to provide a simple restore process.\n\nIf [pyqrcode](https://github.com/mnooner256/pyqrcode) to be is installed, this script generates qr codes that can be scanned with FreeOTP.\nOtherwise the [topt url](https://github.com/google/google-authenticator/wiki/Key-Uri-Format) is printed and\nyou can generate the qr code with a different tool.\n\nHave fun!\n\n## Installation\n\n```bash\n# Clone this repo\ngit clone git@github.com:raphiz/freeotp-backup.git\ncd freeotp-backup/\n\n# Optional: Create a virtual env and install optional dependencies\npython -m venv venv\nsource venv/bin/activate\npip install -r requirements.txt\n```\n\n## Example Usage\n\n```bash\n# Create a backup of the App using ADB - don't encrypt it...\nadb backup -f freeotp-backup.ab -apk org.fedorahosted.freeotp\n\npython backup_freetop_codes.py freeotp-backup.ab\n```\n\n## Contributors \n\n- [raphiz](https://github.com/raphiz)\n- [Dezső BICZÓ](https://github.com/mxr576)\n\n## Credits\n\n- [The FreeOTP Android App](https://freeotp.github.io/)\n- [\"Backing up and recovering 2FA tokens from FreeOTP\" by Marvin Contessi](https://gist.github.com/kontez/05923f2fc208c6bbe3de81f28de571db)\n- [pyqrcode by Michael Nooner](https://github.com/mnooner256/pyqrcode)\n- [StackOverflow Answer by Alex Martelli](https://stackoverflow.com/questions/29055634/python-unpack-android-backup#answer-29055723)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphiz%2Ffreeotp-backup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraphiz%2Ffreeotp-backup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphiz%2Ffreeotp-backup/lists"}