Authenticator Backup
Tool to backup (and restore) Google Authenticator to GPG encrypted files.
NOTE: This has only been tested on Linux. If you find any issues or would like to share any solutions, please submit an issue.
Quickstart
System Dependencies
You will need to have opencv and gpg installed on your system for this
package to work. You should install them before installing this package. For
instance, on Arch Linux (other distributions may use different package managers
or package names):
pacman -S opencv gnupg
Install Authenticator Backup:
pip install --user authenticator_backup
Backup
You'll need the public key for the PGP account(s) that can decrypt the file (the recipients). Each one separated by a space.
python -m authenticator_backup backup 636ABA5F59810D7D97EF05035B705B8C90A02377 > /tmp/backup.txt
This will open a Window displaying video from your Web cam to scan the export QR code with. To get this code:
- Open up Google Authenticator
- Tap the triple-dot in the top right-hand corner
- Tap "Transfer Accounts"
- Tap "Export Accounts"
- Select the accounts you want to backup (probably all of them), and tap "Next"
- Show this code to your Web cam
The window will close and the encrypted backup will be output once it successfully captures the QR code.
Restore
To restore, the recipient GPG account must be on the system to decrypt it.
cat /tmp/backup.txt | python -m authenticator_backup restore
This will display a QR code yo ucan scan with Google Authenticator to re-import the accounts. DO NOT DISPLAY THIS IN A PUBLIC PLACE
- Open up Google Authenticator
- Tap the triple-dot in the top right-hand corner
- Tap "Transfer Accounts"
- Tap "Import Accounts"
- Tap "Scan QR code"
- Scan QR code displayed in the window
- Close the window when complete
If you had a lot of accounts, multiple windows showing QR code may be displayed, one after another.
Metadata
Release files for authenticator-backup 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| authenticator_backup-0.1.2.tar.gz | 5.6 kB | Without provenance | Details for authenticator_backup-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| authenticator_backup-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for authenticator_backup-0.1.2-py3-none-any.whl |
Total release size: 24.5 kB
Release files / authenticator_backup-0.1.2.tar.gz
| Download URL | authenticator_backup-0.1.2.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2960cc25c1fe046b08e6c01271da44ec9e18c3185972f71274abf51a92949133
|
|
BLAKE2b-256 checksum How to use checksums |
c90526e2072b4f5908f48a1c2e368fe4a75c9cb54e635b4bf99d1f4db4a44023
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / authenticator_backup-0.1.2-py3-none-any.whl
| Download URL | authenticator_backup-0.1.2-py3-none-any.whl |
|---|---|
| Size | 18.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
696a9811192ee7abcae563e99488f3aa9f35a9714b4d0d9c57769e75c448857c
|
|
BLAKE2b-256 checksum How to use checksums |
33e249bdaf9833686c093db70d2472be9bab0077c858ac174d35cfb228d05393
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Security for authenticator-backup 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.