think-biq / gaeh

Google Authenticator Export Helper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Google Authenticator Export Helper

Based on the efforts by Chris van Marle.

Setup

After cloning the repository, you can create a virtual environment, build and install the library via:

make prepare install-wheel

Usage

import gaeh

url = 'otpauth-migration://offline?data=CjMKFDFENjc5QzE3RTkzRTJFRTAyMkZBEgl0ZXNzZXJhY3QaCm11bHRpdmVyc2UgASgBMAIQARgBIAA%3D'
accounts = gaeh.export_otp_accounts(url)

print(accounts)

Example result:

{'version': 1, 'batch_size': 1, 'batch_index': 0, 'batch_id': 0, 'accounts': [{'key': 'GFCDMNZZIMYTORJZGNCTERKFGAZDERSB', 'name': 'tesseract', 'issuer': 'multiverse', 'algorithm': 'SHA1', 'digits': 'SIX', 'type': 'TOTP', 'counter': 0}]}

References

Checkout gabut for a comprehensive cli tool for managing google authentictor backups using gaeh.

About

Google Authenticator Export Helper


Languages

Language:Python 71.4%Language:Makefile 28.6%