Commit Graph

22 Commits (eae01a07d59dccbf64916183e3ad300f09d325c4)

Author SHA1 Message Date
Wu Tingfeng eae01a07d5
Test mutually exclusive arguments verbose and quiet (#25) 2 years ago
scito dbfd3464f2 save qr code to specific dir, improve help, add tests
- use metavar for files and dirs in help
- support several recursive dirs in saveqr
- add saveqr and debug tests
2 years ago
scito fbefb3474c fix save_qr: dict notation is needed 2 years ago
scito 4baf406211 improve docu
- add help page to README.txt
- remove -p
- mention optional qrcode module
2 years ago
scito cd2d3258d3 handle not encoded + in query params, fixes #15
- add debug level, by givein parameter -vv
- if the base64 string is not urlencoded, then + will be replaced by a space,
  what cannot be decoded anymore
  --> replace spaces back to plus
- add test
2 years ago
scito d7f4533c99 enable base64 decode validation
Enable validation for analyzing #15
2 years ago
scito 7fc69ea415 refactor to reduce complexity of extract_otps (main loop)
flake8 is happy now
2 years ago
scito eac342c0cc fix optional QRCode import 2 years ago
scito 175e7c38e5 refactor to satisfy flak8 2 years ago
scito c0d1cf6c51 upgrade to protobuf 4.21.5, add quiet mode, refactor code, add unit test
- update README.txt
- rename generated code directory
- refactor code:
    - extract methods
    - make code testable
2 years ago
scito c344c45e04 fix unsued parameter
The parameter given in convert_secret_from_bytes_to_base32_str() was not used
in the method. Use it now.
2 years ago
scito 7a8ba31947 Fix #9: add export to json and csv 2 years ago
Jeroen Lodder 5dc155f556 Use print_ascii to make it work in powershell
qr.print_tty() doesn't work on windows, but qr.print_ascii() does.

May look a bit less formatted, but can still be scanned
2 years ago
scito 1377f032b9 fix: improve logging, handle file saving without issuer, extend example 3 years ago
scito a7a6247f47 fix: improve error handling, abort on missing query parameter (data) 3 years ago
scito e43d9ae925 fix: ignore empty lines in input file 3 years ago
scito fb66c5f568 minor improvements 3 years ago
FrankAbagnaleJr cc26f7b589
Option to save QR codes as PNG (#2)
* Generate QR code images

Now generates QR images instead of attempting to display the QR code in the console. Places them in a subdirectory of the current directory, entitled "qr"

* Update README.md

* Changes based on suggestions from scito

https://github.com/scito/extract_otp_secret_keys/pull/2#pullrequestreview-555264890

* Update extract_otp_secret_keys.py

Minor formatting changes and clarifications to help text

* Update extract_otp_secret_keys.py

Remove --qr argument, instead opting to respond to --printqr or --saveqr
3 years ago
scito 6068eb142c Fix #1: Quote otp.name 4 years ago
scito f8459780c6 fix typo 4 years ago
scito b19c505fb8 fix typos 4 years ago
scito 750d063a88 Initial 4 years ago