Commit Graph

12 Commits (201e6510f80646179dbe4ccf63b3696f57699623)

Author SHA1 Message Date
scito f4389ca8a3 fix linting 2 years ago
scito 631bacc409 use tmp_path fixture instead of clean_up() in pytests 2 years ago
scito 9f0872c2d0 extract from camera
- add help description
- use f-strings
- handle plural correctly
- rename methods, use otp_url instead of line
- remove importlib.util
- move cv2 imports to top
- remove unnecessary global delcarations
- group image tests
2 years ago
scito 0490e227e1 docker image with qreader, 2nd image without qreader
- organize imports
- add qreader pytest.mark
- relaxed mode for pytest
- run tests in docker
- more tests
2 years ago
scito e754befb52 refactor; update setup.py
more verbose logging
better error messages
2 years ago
qwertyca 483fcc0163 Add the ability so provide an image file as the infile. If the file contains a QR code generated by Google Authenticator's "Transfer Accounts" function, it will be decoded directly in a single step. This is meant to help users who need to access their secrets from Google Authenticator but don't have a QR code decoder and don't want to use an online one due to security concerns. 2 years ago
scito 8ba4439305 add utf-8 encoding tests 2 years ago
scito bda0186d10 test wrong data and improve error handling 2 years ago
scito a77e775948 add keepass csv export; improve hotp
- export to dedicated totp and hotp csv files for KeePass
- show Typ as totp/hotp instead of OTP_TOTP/OTP_HOTP
  (BREAKING CHANGE in csv, json and stdout, qr codes or urls are not affected)
- add hotp example
- add hotp tests
- export counter for hotp to csv and json files
- add section on KeePass to README
- increase protobuf to 4.21.10
- show file names of exported csv or json files
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 16d9fffc4a add test for verbose output 2 years ago
scito 9d08ebaa38 add output tests 2 years ago