🔧 Utilidad gratuita · Código abierto

Google Auth Extractor

Exporta tus cuentas TOTP de Google Authenticator a TXT, Aegis, 2FAS o CSV.
Export your Google Authenticator TOTP accounts to TXT, Aegis, 2FAS or CSV.

Python 3.10+ Windows macOS Linux MIT

¿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

🔗Pegar URL otpauth-migration:// directamente / Paste URL directly
🖼️Subir imagen o captura del QR / Upload QR image or screenshot
📷Escanear región de pantalla con el ratón / Live screen region scanner
Acumula cuentas entre escaneos / Accumulates accounts across scans
🔁Deduplicación automática / Auto-deduplication
📋Copiar Emisor, Nombre o Clave / Copy Issuer, Name or Secret
🌐Interfaz en Español e Inglés / Spanish and English UI
🗑️Borrar lista para empezar de cero / Clear list to start over
💾Exportar a TXT, Aegis, 2FAS, CSV / Export to TXT, Aegis, 2FAS, CSV
🔒100% local — ningún dato sale del equipo / No data leaves your device

Capturas

Screenshots

Pantalla principal Ventana de cuentas Exportar cuentas Selector de región Modo escaneo

Instalación

Installation

1. Clona el repositorio / Clone the repo
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".

2. Instala las dependencias / Install dependencies
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

Ejecutar / Run
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

1

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).

2

Importar en la app (elige un modo)

🔗 Modo URL

Escanea el QR → copia la URL otpauth-migration://offline?data=... → pégala → Extraer cuentas

🖼️ Modo imagen

Captura de pantalla del QR → Seleccionar imagen → Leer QR y extraer

📷 Modo escaneo pantalla

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.

3

Exportar

Una vez con todas las cuentas en el listado, pulsa el botón del formato que necesites:

TXT · .txt Aegis · .json · Android 2FAS · .2fas · Android/iOS CSV · Bitwarden, 1Password

Dependencias

Dependencies

customtkinterInterfaz gráfica / UI
pillowLectura de imágenes
pyzbarDecodificación QR (principal)
opencv-pythonDecodificación QR (fallback)
mssCaptura multi-monitor

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

✓ Sin conexiones de red / No network connections
✓ Claves TOTP solo en tu equipo / TOTP secrets stay local
✓ Código fuente auditable / Full source available

Licencia

License

MIT — úsalo, modifícalo y distribúyelo libremente.

Ver repositorio