# GAuth QR Reencoder This tool is used to convert QR code images from Google Authenticator's QR code from both migration (export) and new TOTP. ## Usage The script would take a screenshot of the screen in 2 seconds, then parse the first eligible QR code shown on the screen. Execute the following to start the Python script: ``` python3 gauth_reencoder.py ``` ## Dependencies The Python libraries required are stated in requirements.txt. You may execute the following command to install them. ``` pip3 install requirements.txt ``` `zbar` library is also required on the OS for reading QR code. You may install it using the following: Ubuntu ``` sudo apt install libzbar0 ``` Mac ``` homebrew install zbar ``` `imagemagick` is also needed to display the image through `Image.show()`. This may be installed using: Ubuntu ``` sudo apt install imagemagick ``` ## Tests The package has unit testing included through `pytest`. This may be executed through: ``` python3 -m pytest tests ``` ## References This project utilises code from digitalduke (https://github.com/digitalduke/otpauth-migration-decoder)