Decode the EU Green-Pass QRCode Using Java
The process is done in 4 simple steps.
2 min readJul 26, 2021
This is an elaboration of the original article for python written by Tobias Schlottke
— — — — — — — — — — — — — — — — — — — — —
TL;DR: check this Github repo.
Note: The first input is the File Image. Then, for every step, the input is the output of the previous one.
1- Convert your QR code into the actual text
You will need https://github.com/zxing/zxing library:
<dependency>
<groupId>com.google.zxing</groupId>
<artifactId>core</artifactId>
<version>3.3.0</version>
</dependency>
<dependency>
<groupId>com.google.zxing</groupId>
<artifactId>javase</artifactId>
<version>3.3.0</version>
</dependency>
The text at this point will contain a string like this:
HC1:6BdFOXN%TS3fDHPVO13J…