Tool to backup Google Authenticator to a GPG encrypted file
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file authenticator_backup-0.1.0.tar.gz
.
File metadata
- Download URL: authenticator_backup-0.1.0.tar.gz
- Upload date:
- Size: 17.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b5944a3ae5924585c37b58ba9da8b6b00ecdba06cb1eb529a68dafc0a1f3a40 |
|
MD5 | bd6ca643edd77c5dc1207cfc79522279 |
|
BLAKE2b-256 | 1ac49d1cf3912c56f5805d1d067753dc92fda62349aa58c46d90eb0fbea46e0c |
File details
Details for the file authenticator_backup-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: authenticator_backup-0.1.0-py3-none-any.whl
- Upload date:
- Size: 18.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65229f9a7e05e4bb528b2f5b66ddec103d0d5a1733398d3020548c5ffe986001 |
|
MD5 | 3f5706ec7ab5fe1b2d389703e6c322f4 |
|
BLAKE2b-256 | f3dd649dd358fd1fe7e79c7e8df1aa56684d790a0556202fc1512bbb79f21f2f |