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.
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.
git clone https://github.com/joseqwrtt/Google_auth_extractor.git
cd Google_auth_extractor
📌 系统要求:Python 3.10 或更高版本。在 Windows 上安装时,请勾选 "Add Python to PATH"。
pip install customtkinter pillow pyzbar opencv-python mss
🐧 Linux / macOS:您还需要原生的 zbar 库:
# Ubuntu / Debian
sudo apt install libzbar0
# macOS
brew install zbar
python Google_auth_extractor.py
💡 Windows 上有多个 Python 版本时:
C:\Python311\python.exe Google_auth_extractor.py
或者创建一个 run.bat 文件:
python "%~dp0Google_auth_extractor.py"
pause
打开 Google Authenticator → 菜单 (⋮) → 转移账号 → 导出账号 → 选择账号 → 会出现一个或多个二维码(每个二维码最多 10 个账号)。
扫描二维码 → 复制 otpauth-migration://offline?data=... 链接 → 粘贴 → 提取账号
截取二维码 → 选择图片 → 读取二维码并提取
显示二维码 → 选择区域 → 画出矩形框 → 自动提取
💡 如果您有超过 10 个账号,请对每个二维码重复此过程。账号会不断累积,重复项会被自动忽略。
当所有账号都在列表中后,点击您需要的格式对应的按钮:
pip install pillow pyzbar opencv-python mss
sudo apt install libzbar0 # Ubuntu
brew install zbar # macOS
C:\Python311\python.exe -m pip install customtkinter pillow pyzbar opencv-python mss
pyzbar 需要原生库支持。如果失败,系统会自动使用 opencv-python 作为备用方案。