greenpass qrcode reader
decode & dump data from greenpass 📄
The "evolution" of greenpass_string_reader, less academic approach.
Dependencies: base45-ansi-C, zlib, COSE-C, zbar, libpng.
About base45-ansi-C it raise many warning because it make an signed integer overflow (which is UB)
i don't care for now, but it's important to know i have opened a pull request for this.
Install deps (archlinux)
pacman -S zbar zlib libpng
Build
# then into the folder
mkdir -p build && cd build
cmake ..
make -j`nproc`
Useful links
- https://github.com/jojo2234/GreenPass-Experiments
- https://dencode.com/string/base45
- https://lorenzomillucci.it/posts/2021/06/2021-06-28-ubuntu-decodificare-greenpass-covid-19 (italian)
- https://dday.it/redazione/39870/cosa-ce-scritto-nel-qrcode-del-green-pass-come-decodificarlo-per-guardarci-dentro (Italian)
- https://github.com/eu-digital-green-certificates/dgc-testdata
TODO
- memory overlap warning into zbar library (try with another version)
valgrind --undef-value-errors=no --tool=memcheck --leak-check=yes --show-reachable=yes --num-callers=20 --track-fds=yes ./greenpass_qrcode_reader