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.2.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file authenticator_backup-0.1.2.tar.gz.

File metadata

  • Download URL: authenticator_backup-0.1.2.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for authenticator_backup-0.1.2.tar.gz
Algorithm Hash digest
SHA256 2960cc25c1fe046b08e6c01271da44ec9e18c3185972f71274abf51a92949133
MD5 15d945f3a06a040c769f79348c947aed
BLAKE2b-256 c90526e2072b4f5908f48a1c2e368fe4a75c9cb54e635b4bf99d1f4db4a44023

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for authenticator_backup-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 696a9811192ee7abcae563e99488f3aa9f35a9714b4d0d9c57769e75c448857c
MD5 c7b136ca20301f84324cfa7e4d158551
BLAKE2b-256 33e249bdaf9833686c093db70d2472be9bab0077c858ac174d35cfb228d05393

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