This script is inspired by the thread on the apple discussions: Authenticator plus missing in my region.
This script exports TOTP entries from an encrypted SQLite database (created by Authenticator Plus or a similar app) to individual OTPAuth URIs and ASCII QR codes.
Authenticator Plus has disappeared from the Mac App Store and you can be left without access to your OTP passwords.
- You need to remember your original passphrase. This library does not bruteforce the encryption (yet).
- Python 3.6 or higher
- The required Python packages listed in
requirements.txt
- SQLCipher library (see below)
- Clone the repository or download the script.
- Install the required Python packages:
pip install -r requirements.txt
-
Install the SQLCipher and SQLite libraries using Homebrew:
brew install sqlcipher
-
Run the following command to install the required Python packages with the proper paths for SQLCipher:
SQLCIPHER_PATH=$(brew --prefix sqlcipher) LIBRARY_PATH=/lib C_INCLUDE_PATH=/include pip install -r requirements.txt
- Run the script:
python decrypt.py <path_to_your_encrypted_database>
- Enter the passphrase for the encrypted database when prompted.
- The script will display the OTPAuth URIs and corresponding ASCII QR codes for each TOTP entry.
This project is licensed under the MIT License. See the LICENSE file for details.