¿Por qué existe esta herramienta?
Why does this tool exist?
Google Authenticator exporta las cuentas en un formato propietario (otpauth-migration://) que ninguna otra app puede leer directamente. Cada código QR contiene hasta 10 cuentas. Esta herramienta decodifica esos QR y extrae las claves TOTP para que puedas importarlas donde quieras.
Google Authenticator exports accounts in a proprietary format (otpauth-migration://) that no other app can read directly. Each QR code holds up to 10 accounts. This tool decodes those QR codes and extracts the TOTP secrets so you can import them anywhere.
Características
Features
otpauth-migration:// directamente / Paste URL directlyCapturas
Screenshots
Instalación
Installation
git clone https://github.com/joseqwrtt/Google_auth_extractor.git
cd Google_auth_extractor
📌 Requisitos / Requirements: Python 3.10 o superior. Durante la instalación en Windows, marca "Add Python to PATH".
pip install customtkinter pillow pyzbar opencv-python mss
🐧 Linux / macOS: También necesitas la librería nativa de zbar:
# Ubuntu / Debian
sudo apt install libzbar0
# macOS
brew install zbar
Uso
Usage
python Google_auth_extractor.py
💡 Windows con varias versiones de Python:
C:\Python311\python.exe Google_auth_extractor.py
O crea un archivo ejecutar.bat:
python "%~dp0Google_auth_extractor.py"
pause
Guía paso a paso
Step-by-step guide
Exportar desde Google Authenticator
Abre Google Authenticator → menú (⋮) → Exportar cuentas / Transfer accounts → Export accounts → selecciona las cuentas → aparecerá uno o varios QR (máximo 10 cuentas por QR).
Importar en la app (elige un modo)
Escanea el QR → copia la URL otpauth-migration://offline?data=... → pégala → Extraer cuentas
Captura de pantalla del QR → Seleccionar imagen → Leer QR y extraer
Muestra el QR → Seleccionar región → dibuja rectángulo → extracción automática
💡 Si tienes más de 10 cuentas, repite el proceso con cada QR. Las cuentas se acumulan y los duplicados se ignoran.
Exportar
Una vez con todas las cuentas en el listado, pulsa el botón del formato que necesites:
Dependencias
Dependencies
Solución de problemas
Troubleshooting
El escáner de pantalla no funciona
pip install pillow pyzbar opencv-python mss
sudo apt install libzbar0 # Ubuntu
brew install zbar # macOS
Varias versiones de Python en Windows
C:\Python311\python.exe -m pip install customtkinter pillow pyzbar opencv-python mss
Error al importar pyzbar en Windows
pyzbar requiere librerías nativas. Si falla, opencv-python se usa como alternativa automáticamente.
🔒 Seguridad
Security
Licencia
License
MIT — úsalo, modifícalo y distribúyelo libremente.
Ver repositorio