The VaxiCode Parser is a command-line tool for decoding Smart Health Card (SHC) information from QR codes embedded in PDFs, images, or provided as a string.
The Smart Health Card (SHC) is a standard format for securely storing and sharing COVID-19 vaccination and testing information. This tool helps decode the encoded health information contained within SHC QR codes, allowing users to view the decoded data in a human-readable format.
Alternatively, a webpage version of the VaxiCode Parser is available, providing a user-friendly interface for decoding SHC information. The webpage runs entirely on the client-side, ensuring that no data is stored or sent anywhere. Users can upload PDF files, images, or enter SHC strings directly for decoding. The decoded information is displayed on the webpage for easy access.
You can access the webpage version of the VaxiCode Parser here
NOTE: To use the PDF/image decoding features you need to have canvas reading enabled in your browser for QR codes to be read with JavaScript (privacy.resistFingerprinting must be turned off for Firefox users)
Before installing and using the VaxiCode Parser, ensure you have the following prerequisites:
- Python: Ensure you have Python (>=3.6) installed on your system.
- Poppler: For decoding PDF files, you need to have Poppler installed. Instructions for installing Poppler on different operating systems are provided below.
- Poetry: Poetry is a dependency manager for Python projects. You'll need Poetry to install and manage the dependencies for this project. Follow the installation instructions below.
sudo apt update && sudo apt upgrade
sudo apt install poppler-utils
brew install poppler
- Download the latest version of Poppler from oschwartz10612/poppler-windows
- Extract the latest release .zip to C:\Program Files
- Add the absolute path to the Poppler bin directory to your system PATH
To install Poetry, run the following command:
curl -sSL https://install.python-poetry.org | python3 -
For detailed installation instructions, refer to the Poetry documentation.
To install the VaxiCode Parser and its dependencies, follow these steps:
- Clone the repository:
git clone https://github.com/Dwarf1er/vaxicode-parser.git
- Navigate to the project directory:
cd path/to/vaxicode-parser
- Install dependencies using Poetry:
poetry install
After installing the VaxiCode Parser, you can use it to decode SHC information from PDFs, images, or SHC strings using the following command-line interface:
- Enter the poetry virtual environment:
poetry shell
- Use the command line interface:
python vaxicode-parser.py --pdf <path_to_pdf_file>
python vaxicode-parser.py --image <path_to_image_file>
python vaxicode-parser.py --shc <shc_string>
Replace <path_to_pdf_file>, <path_to_image_file>, and <shc_string> with the appropriate values.
- Antoine Poulin Dwarf1er
This project is licensed under the GNU General Public License v3.0