/ 免费工具 · 开源

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
/ 为什么

为什么会有这个工具?

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.

/ 功能特性

包含的所有功能。

直接粘贴 otpauth-migration:// 链接
上传二维码图片或截图
用鼠标扫描屏幕区域
多次扫描间可累积账户
自动去重
复制发行方、名称或密钥
西班牙语和英语界面
清空列表以重新开始
导出为 TXT、Aegis、2FAS、CSV
100% 本地运行——不会有任何数据离开您的电脑
/ 截图

工具实际使用效果。

工具实际使用效果。 工具实际使用效果。 工具实际使用效果。 工具实际使用效果。 工具实际使用效果。
/ 安装

安装。

1. 克隆代码仓库
git clone https://github.com/joseqwrtt/Google_auth_extractor.git
cd Google_auth_extractor

📌 系统要求:Python 3.10 或更高版本。在 Windows 上安装时,请勾选 "Add Python to PATH"

2. 安装依赖项
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
/ 使用指南

分步说明。

01

从 Google Authenticator 导出

打开 Google Authenticator → 菜单 (⋮) → 转移账号 → 导出账号 → 选择账号 → 会出现一个或多个二维码(每个二维码最多 10 个账号)。

02

导入到应用程序中(选择一种方式)

🔗 链接模式

扫描二维码 → 复制 otpauth-migration://offline?data=... 链接 → 粘贴 → 提取账号

🖼️ 图片模式

截取二维码 → 选择图片 → 读取二维码并提取

📷 屏幕扫描模式

显示二维码 → 选择区域 → 画出矩形框 → 自动提取

💡 如果您有超过 10 个账号,请对每个二维码重复此过程。账号会不断累积,重复项会被自动忽略。

03

导出

当所有账号都在列表中后,点击您需要的格式对应的按钮:

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

内部使用的技术。

customtkinter — 图形界面 pillow — 图片读取 pyzbar — 二维码解码(主要方式) opencv-python — 二维码解码(备用方式) mss — 多显示器截屏
/ 帮助

故障排除。

屏幕扫描功能无法使用

pip install pillow pyzbar opencv-python mss
sudo apt install libzbar0   # Ubuntu
brew install zbar           # macOS

Windows 上安装了多个 Python 版本

C:\Python311\python.exe -m pip install customtkinter pillow pyzbar opencv-python mss

在 Windows 上导入 pyzbar 时出错

pyzbar 需要原生库支持。如果失败,系统会自动使用 opencv-python 作为备用方案。

/ 安全性

无需互联网连接。

无网络连接
TOTP 密钥仅保存在您的电脑上
完整源代码可供审查

MIT 开源许可证。

自由使用、修改和分发。

查看代码仓库 →