ps1dr3x / greenpass-generator

53 stars 114 forks source link

Help with the signed header #12

Open ZuzzuWasTaken opened 2 years ago

ZuzzuWasTaken commented 2 years ago

I’d love for someone to tell me where to find this fucking "signed header". I actually have a working green pass but the script entered in #1 doesn’t generate anything. I ask you to please help me. Thank you

royarisse commented 2 years ago

As you may know the QR is kind of a Matryoshka doll with layers of encoding, .e.g.: QR Text data → Base45 → Zlib → CBOR. That CBOR has 4 fields: [header1, header2, payload, signature]. I'm no expert on CBOR, you'd have to do some Googling around, but it looks like the signature is an integral part of CBOR.

karu2003 commented 2 years ago

Nice start but doesn't work. No Zlib

royarisse commented 2 years ago

Nice start but doesn't work. No Zlib

I'm sorry, but it does use Zlib compression.