This is a cli tool to decode one time password (OTP) secrets from QR codes exported by Google Authenticator. The exported QR codes can be read as image files and decoded result can be exported to JSON or CSV or saved as QR code images or printed as QR code to terminal.
- Open Google Authenticator app on your phone.
- Tap on the three dots in the top right corner.
- Tap on "Transfer accounts".
- Select the accounts you want to export.
- Tap on "Export accounts".
- Save the QR codes as images.
Download the binary from the release page and run it in your terminal.
$ decodeGoogleOTP -i <input file> -c <csv file path>
$ decodeGoogleOTP -h
decodeGoogleOTP is a command line tool to decode Google OTP QR codes. Output can be json, csv, qrcode or plain text.
Usage:
decodeGoogleOTP [flags]
decodeGoogleOTP [command]
Available Commands:
completion Generate the autocompletion script for the specified shell
help Help about any command
version Print current version of the application
Flags:
-c, --csv string Output in CSV format and specify the output file
-d, --debug Enable debug mode
-h, --help help for decodeGoogleOTP
-i, --input string Input file path
-j, --json string Output in JSON format and specify the output file
-p, --print-qr Print QR code to terminal
-q, --qrcode string Output in QR code image format and specify the output directory
-s, --silent Enable silent mode
-t, --text string Output url list in plain text format and specify the output file
-u, --url string Output in URL format and specify the output file
-v, --version Print version information
Use "decodeGoogleOTP [command] --help" for more information about a command.
$ decodeGoogleOTP -i <input file> -j <output file>
$ decodeGoogleOTP -i <input file> -c <output file>
$ decodeGoogleOTP -i <input file> -q <output directory>
$ decodeGoogleOTP -i <input file> -p
$ decodeGoogleOTP -i <input file> -t <output file>
$ decodeGoogleOTP -i <input file> -u <output file>
This project is open source under the MIT license. Welcome everyone to use and contribute code.
Copyright (c) 2024-present Kuingsmile