https://github.com/kuingsmile/decodegoogleotp
Decode one time password (OTP) secrets from QR codes exported by Google Authenticator.
https://github.com/kuingsmile/decodegoogleotp
authenticator google otp
Last synced: 5 days ago
JSON representation
Decode one time password (OTP) secrets from QR codes exported by Google Authenticator.
- Host: GitHub
- URL: https://github.com/kuingsmile/decodegoogleotp
- Owner: Kuingsmile
- License: mit
- Created: 2024-05-10T15:22:35.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-11T15:17:02.000Z (12 months ago)
- Last Synced: 2025-04-08T23:41:52.235Z (about 1 month ago)
- Topics: authenticator, google, otp
- Language: Go
- Homepage:
- Size: 15.6 KB
- Stars: 49
- Watchers: 1
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# decodeGoogleOTP
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.
## How to use
### Export QR codes from Google Authenticator
1. Open Google Authenticator app on your phone.
2. Tap on the three dots in the top right corner.
3. Tap on "Transfer accounts".
4. Select the accounts you want to export.
5. Tap on "Export accounts".
6. Save the QR codes as images.### Decode QR codes
Download the binary from the [release page](https://github.com/kuingsmile/decodeGoogleOTP/releases) and run it in your terminal.
```shell
$ decodeGoogleOTP -i -c
```## Parameters
```shell
$ decodeGoogleOTP -hdecodeGoogleOTP 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 applicationFlags:
-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 informationUse "decodeGoogleOTP [command] --help" for more information about a command.
```## Examples
### Decode QR code and save as JSON
```shell
$ decodeGoogleOTP -i -j
```### Decode QR code and save as CSV
```shell
$ decodeGoogleOTP -i -c
```### Decode QR code and save as QR code images
```shell
$ decodeGoogleOTP -i -q
```### Decode QR code and print as QR code to terminal
```shell
$ decodeGoogleOTP -i -p
```### Decode QR code and save as plain text
```shell
$ decodeGoogleOTP -i -t
```### Decode QR code and save as URL
```shell
$ decodeGoogleOTP -i -u
```## License
This project is open source under the MIT license. Welcome everyone to use and contribute code.
[MIT License](https://opensource.org/licenses/MIT)
Copyright (c) 2024-present Kuingsmile