summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authornetaneld122 <netaneld122@gmail.com>2021-03-01 09:46:52 +0200
committerGitHub <noreply@github.com>2021-03-01 09:46:52 +0200
commiteb5d270ffc7d28b6bffe4789a8ea421b27be0f25 (patch)
tree9db9ff353b66b02616572fb317dd69cd780412b6 /README.md
parent934798e6b82c711f0e877fa7a05235aa2cf2845a (diff)
Added actual QR code reading (#3)
* Added actual QR code reading. Added requirements.txt for dependencies. Added .gitignore. Updated README according to new usage. * Fixed CR notes. Migrated requirements to a Pipfile format. Added ability to open textual payload. Removed irrelevant paths in .gitignore. * Fixed pipenv run cli. Co-authored-by: Netanel <Netanel> Co-authored-by: nati <nati>
Diffstat (limited to 'README.md')
-rw-r--r--README.md39
1 files changed, 38 insertions, 1 deletions
diff --git a/README.md b/README.md
index 5dfd3f7..4c86597 100644
--- a/README.md
+++ b/README.md
@@ -8,7 +8,44 @@ As (not really) specified in https://github.com/MohGovIL/Ramzor
A pythonic implementation of the verification process can be found in [`verify.py`](verify.py).
-It requires the [`cryptography`](https://pypi.org/project/cryptography/) package to be installed.
+### Setup
+
+Install [`pipenv`](https://pypi.org/project/pipenv/) and execute:
+```bash
+pipenv install
+```
+
+### Usage
+
+#### Option 1 - from QR code image
+Save your Green Pass as a `.png` file and execute:
+```bash
+pipenv run python verify.py -i green_pass_image.png
+```
+
+#### Option 2 - from QR code decoded textual content
+
+Decode the QR code payload yourself, put it in a txt file:
+
+*textual_payload.txt*
+```json
+base64EncodedSignature==#{"id":"01/IL/ABCD1234ABCD1234ABCD1234ABCD1234#ABCD1234","et":1,"ct":1,"c":"IL MOH","cn":null,"fn":null,"g":null,"f":null,"gl":null,"fl":null,"idp":null,"idl":null,"b":"0001-01-01","e":"0001-01-01","a":"0001-01-01","p":[{"idl":"012345678","e":"2021-01-01"}]}
+```
+
+And then execute:
+
+```bash
+pipenv run python verify.py -t textual_payload.txt
+```
+
+### Output example
+
+```
+Valid signature!
+Israeli ID Number 012345678
+ID valid by 2021-01-01
+Cert Unique ID 01/IL/ABCD1234ABCD1234ABCD1234ABCD1234#ABCD1234
+```
## Verification Process Details