hannob / vacdec

Python script to decode the EU Covid-19 vaccine certificate
The Unlicense
242 stars 89 forks source link

Add verbose mode #22

Closed Algafix closed 1 year ago

Algafix commented 2 years ago

Changes

Added a verbose mode -v that translates the issue and expiration dates of the certificate from Unix timestamp to UTC in the format YYYY-MM-DD HH:MM:SS.

The verbose mode also decodes the json values for:

Although it shows the original encoded value too.

In general, it gives more information to the reader in a more structured way.

Code Structure

I didn't want to modify the original structure of the code, so I just added the new functionality at the end of the file while preserving the original organization and functionality.