Commit Graph
100 Commits
Author SHA1 Message Date
scito 75e5d2671f fix: rename vscode workspace 2023-02-12 19:00:29 +01:00
scito 5e94c43140 ci_release: fix get tag name (checkout repo); print meta values 2023-02-12 19:00:29 +01:00
scito 8df61f6ed7 ci: no docker login for dependabot 2023-02-07 10:51:07 +01:00
scito ca23497c9a docu clean ups 2023-02-06 20:42:54 +01:00
scito ebfe0dc58d ci_release: add release notes table 2023-02-06 11:54:09 +01:00
scito 78118c73e8 make zbar lib optional
- refactor: global variable renaming
2023-02-05 21:24:57 +01:00
scito 4fc5559e15 add version number to asset executables 2023-02-05 21:24:57 +01:00
scito 7faf530863 reproducible builds, build.sh: linux/arm64 2023-02-05 21:24:57 +01:00
scito 709aa111be ci_release: build linux arm64 exe 2023-02-03 22:14:53 +01:00
scito fe60acb24f release: upload hashes as binary to keep eol 2023-01-30 20:44:33 +01:00
scito 5c36f07f41 ci_release: build exe without upload on PR 2023-01-30 14:39:50 +01:00
scito 861d7d0da8 build buster image in ci_docker for speeding up releases 2023-01-30 11:28:07 +01:00
scito 63fc21cc90 ci_release: upload hashes and run on pull_request and run scheduled 2023-01-30 11:28:07 +01:00
scito d234cf4112 cv2: fix save as csv/json/keepass 2023-01-30 11:28:07 +01:00
scito 970dbd3759 cv2: save as csv/json/keppass by key command 2023-01-29 16:50:55 +01:00
scito 197347a3e9 update README 2023-01-27 20:58:33 +01:00
scito 365d5ac432 use hub.docker for linux exe build
since it is more stable and thus faster
2023-01-26 01:14:45 +01:00
scito 88ff584e47 ci: workaround for failing builds 2023-01-26 00:18:41 +01:00
scito dbb5d8f755 workaround ghcr.io failed to copy
failed to copy: io: read/write on closed pipe

- use DockerHub instead of dhcr.io
- ref: https://github.com/containerd/containerd/issues/7972
2023-01-25 23:46:22 +01:00
scito 580f94256f Add files of Visual C++ 2013 Redistributable Package
- add files of vcredist_x64.exe as binary data to pyzbar
- thus avoid manual installation of vcredist_x64.exe
- test all qr readers in exe smoketests
- improve README
2023-01-25 23:14:38 +01:00
scito f4bff86a5c fix curl upload windows
- set for pre-releases 99 in windows version
- fix TZ: use TZ=Europe/Zurich
2023-01-25 01:54:20 +01:00
scito cff5fe1cda ci_release: ignore response and remove silent mode 2023-01-24 23:18:28 +01:00
scito 576b1e68c5 ci: ignore markdown files 2023-01-24 23:00:32 +01:00
scito 84e1922979 fix VERSION_PATCH for pre-tags, e.g. 1b1 2023-01-24 22:48:22 +01:00
scito 7f89168b92 ci_release: change order of build matrix 2023-01-24 22:15:13 +01:00
scito b9f17c4a95 rename build docker jobs 2023-01-24 22:12:02 +01:00
scito 6a7a7233a4 build and upload executables created by PyInstaller
- create release on tag push
- build executables by PyInstaller:
    - extract_otp_secrets_linux_x86_64 (glibc 2.28)
    - extract_otp_secrets_win_x86_64.exe
    - extract_otp_secrets_macos_x86_64 (untested)
- add --version
- build linux executable in docker container
- update README
    - add TOC
    - improve badges
    - add PyInstaller section
- docker
    - build BASE_IMAGE as ARG
    - copy only required files to image
    - add .alias
- build.sh
    - fix clean
    - fix generate results
    - generate TOC
2023-01-24 21:19:38 +01:00
scito 445d77783c update Pipfile.lock 2023-01-17 21:23:46 +01:00
scito f0134fa907 add zbar installation for archlinux [skip ci] 2023-01-17 21:04:42 +01:00
scito e0588285c9 require qreader < 2.0.0 due to breaking changes
- add more classifiers
2023-01-15 10:44:55 +01:00
scito ff9401687e ci: do not run ci tests on pull_request 2023-01-14 09:42:44 +01:00
scito 2478edb7a1 decode only QR in zbar (which avoids assertion pdf417)
Warning on Windows:
WARNING: .\zbar\decoder\pdf417.c:89: <unknown>: Assertion "g[0] >= 0 && g[1] >= 0 && g[2] >= 0" failed.

        dir=0 sig=1b455 k=3 g0=04a g1=ffffffff g2=b78 buf[0000]=
2023-01-13 21:28:38 +01:00
scito 5e439b9396 update Pipfile.lock packages 2023-01-11 20:48:20 +01:00
scito 5c4d3ce696 improve README 2023-01-07 09:39:15 +01:00
scito ec09b5daad improve README; add google-authenticator-exporter link 2023-01-06 10:13:51 +01:00
scito 2ed923591e use only cv2_draw_box, move core functions to top
- improve camera test
- add more tests
- improve README
    - add "How to export otp secrets from Google Authenticator app"
    - reorder: put usage before installation
    - add "Full local build"
2023-01-04 23:12:38 +01:00
scito 36fd0c0bb6 add test keepass with no data 2023-01-03 23:51:33 +01:00
scito b215b78dad test extract_otps_from_camera() 2023-01-03 23:51:33 +01:00
scito 851cb6532c improve build and README
- clean pip
- do not use sudo anymore
- add missing mypy-protobuf package
- sort package dependencies
- fix order of build calls
- add frame color docu to README
2023-01-03 23:51:33 +01:00
scito 2bef64e5f6 ci: no Pytest coverage comments for tags
Create commit comment
##[error]HttpError: No commit found for SHA: 19b3368
##[error]No commit found for SHA: 19b3368
2023-01-03 23:51:33 +01:00
scito 3502294172 remove dependency to module and fix build script 2023-01-03 02:00:07 +01:00
scito 2707e244be update README 2023-01-03 01:04:44 +01:00
scito 4ba0fad000 capture QR codes from camera and major refactoring
- add GUI for QR code capturing from camera (CV2 is used)
- support different QR readers: ZBAR,QREADER,QREADER_DEEP,CV2,CV2_WECHAT
- support several input files
- add option to ignore duplicate otps
- write warnings and errors to stderr
- add output coloring
- rename project from extract_otp_secret_keys to extract_otp_secrets
- improve help
- clean verbose level output
- use Python type hints and check with mypy
- use f-strings
- clean up code
- add more tests
- calculate code coverage
- use src-layout: move files and folders
- support wheel packing
- enhance README.md
- bugfixes
    * fix -k -
    * fix utf-8 encoding on windows
2023-01-03 00:28:32 +01:00
scito 9d052dc78a refactor image import and add Alpine docker image
- dynamic import of QR reader
- build docker also for arm64
2023-01-03 00:26:46 +01:00
scito 65c52f4d81 skip verbose tests for pypy 2022-12-19 22:37:23 +01:00
scito 8ba4439305 add utf-8 encoding tests 2022-12-19 22:37:23 +01:00
scito 10bc6959a3 add python to vscode recommended extensions 2022-12-19 17:48:17 +01:00
scito 7af4017910 ci: daily tests and order python from new to old
- more recent version first
2022-12-19 00:11:30 +01:00
scito 7af631ff1e ci: setup testing for linux, macos and windows platforms
- fix ci for windows: remove bash if/fi
- exlucde failing test from windows
- enable scheduled tests
- use --use-pep517 for pip install: avoid deprecation message
- exlcude windows-latest and pypy-3.9 since there is a problem with installing (missing zlib.h)
2022-12-18 23:06:52 +01:00
scito ca4a0bc7d2 improvements for - (stdout)
- - implies -q
- use add_mutually_exclusive_group for -v and -q
- adapt and improve tests
2022-12-18 21:34:24 +01:00
scito 1be4c7e0ef suppor writing csv and json to stdout; print errors to stderr
- add tests
2022-12-18 19:24:07 +01:00
scito fd1841f8dd update Pipfile.lock 2022-12-18 17:42:42 +01:00
scito 81c2cb498a add stdin pytest 2022-12-18 17:41:35 +01:00
scito 21c16ed44e add pypy Python versions 3.7, 3.8, and 3.9 to GitHub CI testing 2022-12-18 13:26:17 +01:00
scito 30638041d8 upgrade to protobuf 4.21.12 2022-12-16 13:17:39 +01:00
scito 892f4f92ae fix compatibility for Python < 3.11 2022-12-16 13:10:22 +01:00
scito bda0186d10 test wrong data and improve error handling 2022-12-16 12:43:32 +01:00
scito 96c8836a98 upgrade to protobuf 4.21.11 2022-12-10 12:25:15 +01:00
scito c44a3f45de add pip installation; improve README
- improve README
    - add Installation section
    - add Features section
    - add Glossary
    - add related projects

- add setup.py for pip installation:
    pip install git+https://github.com/scito/extract_otp_secret_keys
2022-12-10 12:23:13 +01:00
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
2022-12-04 16:19:30 +01:00
scito 10fefacd2d add clean pipenv to README 2022-11-27 21:47:34 +01:00
scito b562ceb00a use Python 3.11 for pipenv 2022-11-27 18:33:21 +01:00
scito 3e1818619e add dev deps to Pipfile 2022-11-19 10:17:44 +01:00
scito a95a0d1325 upgrade devcontainer to Python 3.11 2022-10-31 22:11:55 +01:00
scito 302c45be99 generalize to upgrade_deps.sh and update Pipfile.lock 2022-10-31 21:50:16 +01:00
scito 354a4bdada improve steps in README.md 2022-10-30 14:46:43 +01:00
scito 13c4b6c7d4 enable Python 3.11 ci 2022-10-25 22:36:58 +02:00
scito 52d5c56890 use protobuf 4.21.8 2022-10-22 10:31:25 +02:00
scito a60cbbb7bb ignore wheel files 2022-09-25 11:59:46 +02:00
scito 4546655cc5 add protoc upgrade script and update to protoc 21.6/protobuf 4.21.6 2022-09-25 11:54:22 +02:00
Roland Kurmann be4d0d37db add default codeql-analysis.yml
This file enables security scans on GitHub.
2022-09-17 11:24:11 +02:00
scito 3933e6ed8a add #StandWithUkraine 2022-09-09 18:50:10 +02:00
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
2022-09-09 13:15:22 +02:00
scito fbefb3474c fix save_qr: dict notation is needed 2022-09-09 13:08:35 +02:00
scito 4baf406211 improve docu
- add help page to README.txt
- remove -p
- mention optional qrcode module
2022-09-08 21:26:19 +02:00
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
2022-09-07 21:58:03 +02:00
scito df8b99dce4 add debug launch config for folder and workspace 2022-09-07 21:49:29 +02:00
scito 801c0e42d0 add technical spelling words, like TOTP 2022-09-07 19:59:38 +02:00
scito d7f4533c99 enable base64 decode validation
Enable validation for analyzing #15
2022-09-07 19:36:10 +02:00
scito 9beb98693c README: link badges, add protobuf 2022-09-04 22:07:39 +02:00
scito fbde835601 enable pytest in vscode and mention it in README 2022-09-04 19:02:36 +00:00
scito fb4cee14da add VSCode devcontainer setup 2022-09-04 13:58:58 +00:00
scito 4027677b38 add vscode settings.json 2022-09-04 13:44:46 +02:00
scito acab230436 improve README.md 2022-09-04 08:57:12 +02:00
scito 7fc69ea415 refactor to reduce complexity of extract_otps (main loop)
flake8 is happy now
2022-09-04 08:37:03 +02:00
scito 16d9fffc4a add test for verbose output 2022-09-04 08:16:20 +02:00
scito 33bba8848a add dependabot.yml 2022-09-04 01:30:45 +02:00
scito 2eaab5e3b5 update README and CI 2022-09-04 01:01:53 +02:00
scito 9d08ebaa38 add output tests 2022-09-04 00:15:08 +02:00
scito eac342c0cc fix optional QRCode import 2022-09-03 23:46:05 +02:00
scito aaef496d4f refactor tests, add utils 2022-09-03 22:20:01 +02:00
scito cf91108c3f add badges to README, rename CI file to ci.yml
- add python and license badge to README
- rename GitHub Workflow actions file to ci.yml
2022-09-03 19:05:30 +02:00
scito fef46dcfba support pipenv 2022-09-03 19:05:30 +02:00
Roland Kurmann fe61b995d8 Add GPL3 LICENSE 2022-09-03 18:23:30 +02:00
scito daf20cd5fa add badge to REAME 2022-09-03 16:38:29 +02:00
scito 8d3e634eed add latest Python version to workflow 2022-09-03 16:38:29 +02:00
scito 175e7c38e5 refactor to satisfy flak8 2022-09-03 16:38:29 +02:00
scito 7f8250c0a6 add github test action and add pytest 2022-09-03 16:38:29 +02:00
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
2022-09-03 14:55:17 +02:00
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.
2022-09-03 14:28:15 +02:00