|
|
|
@@ -1,4 +1,4 @@
|
|
|
|
|
# Extract secrets from QR codes exported by two-factor authentication apps
|
|
|
|
|
# Extract TOTP/HOTP secrets from QR codes exported by two-factor authentication apps
|
|
|
|
|
|
|
|
|
|
[](https://github.com/scito/extract_otp_secrets/actions/workflows/ci.yml)
|
|
|
|
|

|
|
|
|
@@ -13,15 +13,15 @@
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
The Python script `extract_otp_secrets.py` extracts one time password (OTP) secrets from QR codes exported by two-factor authentication (2FA) apps such as "Google Authenticator".
|
|
|
|
|
The export QR codes from authentication apps can be provided in three ways to this script:
|
|
|
|
|
The exported QR codes from authentication apps can be read in three ways:
|
|
|
|
|
|
|
|
|
|
1. Capture from the system camera in a GUI,
|
|
|
|
|
2. Image files containing the QR codes, and
|
|
|
|
|
3. Text files containing the QR code data generated by QR readers.
|
|
|
|
|
1. Capture from the system camera using a GUI, _(new!)_
|
|
|
|
|
2. Read image files containing the QR codes, and _(new!)_
|
|
|
|
|
3. Read text files containing the QR code data generated by third-party QR readers.
|
|
|
|
|
|
|
|
|
|
The secret and otp values can be exported to json or csv files, as well as printed or saved to PNG images.
|
|
|
|
|
|
|
|
|
|
This script/project was renamed from extract_otp_secret_keys to extract_otp_secrets in version 2.0.0.
|
|
|
|
|
**The project and the script were renamed from extract_otp_secret_keys to extract_otp_secrets in version 2.0.0.**
|
|
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
|
@@ -518,10 +518,10 @@ FileNotFoundError: Could not find module 'libiconv.dll' (or one of its dependenc
|
|
|
|
|
|
|
|
|
|
* [ZBar](https://github.com/mchehab/zbar) is an open source software suite for reading bar codes from various sources, including webcams.
|
|
|
|
|
* [Aegis Authenticator](https://github.com/beemdevelopment/Aegis) is a free, secure and open source 2FA app for Android.
|
|
|
|
|
* [Android OTP Extractor](https://github.com/puddly/android-otp-extractor) can extract your tokens from popular Android OTP apps and export them in a standard format or just display them as QR codes for easy importing. [Requires a _rooted_ Android phone.]
|
|
|
|
|
* [Python QReader](https://github.com/Eric-Canas/QReader)
|
|
|
|
|
* [pyzbar](https://github.com/NaturalHistoryMuseum/pyzbar)
|
|
|
|
|
* [pyzbar](https://github.com/NaturalHistoryMuseum/pyzbar) is a good QR code reader Python module
|
|
|
|
|
* [OpenCV](https://docs.opencv.org/4.x/) (CV2) Open Source Computer Vision library with [opencv-python](https://github.com/opencv/opencv-python)
|
|
|
|
|
* [Python QReader](https://github.com/Eric-Canas/QReader) Python QR code readers
|
|
|
|
|
* [Android OTP Extractor](https://github.com/puddly/android-otp-extractor) can extract your tokens from popular Android OTP apps and export them in a standard format or just display them as QR codes for easy importing. [Requires a _rooted_ Android phone.]
|
|
|
|
|
|
|
|
|
|
***
|
|
|
|
|
|
|
|
|
|