diff options
| author | Eyal Ronen <er@eyalro.net> | 2021-02-23 18:11:18 +0200 |
|---|---|---|
| committer | Eyal Ronen <er@eyalro.net> | 2021-02-23 18:11:18 +0200 |
| commit | 443e899b6f15ca5d7fd42174921faacb2059944a (patch) | |
| tree | f4a188c5a352335fd6878c70b486e4ece0c87d82 /verify.py | |
| parent | 4f48e791f2569c9158d287305e89f31185d12b06 (diff) | |
now printing Details of the Green Pass
Diffstat (limited to 'verify.py')
| -rw-r--r-- | verify.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1,4 +1,5 @@ import base64 +import json from cryptography.hazmat.primitives import hashes, serialization from cryptography.hazmat.primitives.asymmetric import padding @@ -21,3 +22,8 @@ with open("certs/RamzorQRPubKey.pem", "rb") as f: padding.PKCS1v15(), hashes.SHA256(), ) + +json_data = json.loads(payload) +print('Israeli ID Number ', json_data['p'][0]['idl']) +print('ID valid by ', json_data['p'][0]['e']) +print('Cert Unique ID =', json_data['id'])
\ No newline at end of file |
