Skip to main content

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:

  1. Open up Google Authenticator
  2. Tap the triple-dot in the top right-hand corner
  3. Tap "Transfer Accounts"
  4. Tap "Export Accounts"
  5. Select the accounts you want to backup (probably all of them), and tap "Next"
  6. 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

  1. Open up Google Authenticator
  2. Tap the triple-dot in the top right-hand corner
  3. Tap "Transfer Accounts"
  4. Tap "Import Accounts"
  5. Tap "Scan QR code"
  6. Scan QR code displayed in the window
  7. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

authenticator_backup-0.1.0.tar.gz (17.6 kB view details)

Uploaded Source

Built Distribution

authenticator_backup-0.1.0-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

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

Hashes for authenticator_backup-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6b5944a3ae5924585c37b58ba9da8b6b00ecdba06cb1eb529a68dafc0a1f3a40
MD5 bd6ca643edd77c5dc1207cfc79522279
BLAKE2b-256 1ac49d1cf3912c56f5805d1d067753dc92fda62349aa58c46d90eb0fbea46e0c

See more details on using hashes here.

File details

Details for the file authenticator_backup-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for authenticator_backup-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 65229f9a7e05e4bb528b2f5b66ddec103d0d5a1733398d3020548c5ffe986001
MD5 3f5706ec7ab5fe1b2d389703e6c322f4
BLAKE2b-256 f3dd649dd358fd1fe7e79c7e8df1aa56684d790a0556202fc1512bbb79f21f2f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page