Win a copy of Terraform in Action this week in the Cloud forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

How do I uncompress this hex string using zlib in javascript ?

 
Greenhorn
Posts: 1
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
78dabbd4e2bb88518dc543233ff5ec2d45cfde05918c9a4b1893024258a4128ff2d6b349257ca87a6cc9c8bc9071496259e3aaa4e4cc0ac3d2a23cabd2b2e44cabd0203fabd030674f2b0343ab80102bdf60aba060d78030e34813275713f750b7d0c8c808577765cfa4e47ca0894929794c4929255946064686ba0666ba46664999c5a5be997999c52587571665e62ba4242a04271ede95929a949b98eb1fe4ae6b6800048666969649b90539aea1fa86fa4686fa86a6469649c5294c4925e999162606a6c6960606664965055986868696c606a60606a6c929f949598696a646207b0ccd92f312739724a5e515b8b82a38faf8ba7aba382af8843a3b0627a5e7e5f8841eee0d5670f3f4f10c704d4ecb2b012ab2812ab2012b4a4ecf2bc9f609f50cb6812a2a4b2d4a35d433d033887038a4b4a4794d5dc66f8fcdf9b545815fb9a64f2ebfcfa9f9f2f7c71b458d67a6cbbdb38d0f5cf1f1c7d9e7013d22d1de1c5ddbb70ac9fd88b9cff2ecdf14c6e77bbe854b0100710988a7


im trying to read my greenpass certificate, it is base45 encoded that will lead to a cwt compressed by zlib, in python works just fine with "zlib.decompress" but i im trying to do it with javascript and i can't, i have a simple script in javascript that lead to that hex result (i had to use hexadecimal otherwise, will appear a bunch of weird characters(if i used utf-8), this was what i got

I've seen it here https://dev.to/lmillucci/javascript-how-to-decode-the-greenpass-qr-code-3dh0, but with pako gives me an error, so im trying to use zlib

Here is the info about how QR code greenpass certificate is encrypted https://github.com/eu-digital-green-certificates/dgc-testdata, https://github.com/ehn-dcc-development/hcert-spec/blob/main/README.md


Apreciate any help
 
Author
Posts: 9
jQuery Python TypeScript
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Seymour Wanderson wrote:78dabbd4e2bb...


im trying to read my greenpass certificate, it is base45 encoded that will lead to a cwt compressed by zlib, in python works just fine with "zlib.decompress" but i im trying to do it with javascript and i can't, i have a simple script in javascript that lead to that hex result (i had to use hexadecimal otherwise, will appear a bunch of weird characters(if i used utf-8), this was what i got

I've seen it here https://dev.to/lmillucci/javascript-how-to-decode-the-greenpass-qr-code-3dh0, but with pako gives me an error, so im trying to use zlib

Here is the info about how QR code greenpass certificate is encrypted https://github.com/eu-digital-green-certificates/dgc-testdata, https://github.com/ehn-dcc-development/hcert-spec/blob/main/README.md


Apreciate any help



Hello Seymour, you could try something like this:

 
Saloon Keeper
Posts: 13422
300
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If the name "De Almeida" means anything to you, I suggest you remove that hex string from your post.
reply
    Bookmark Topic Watch Topic
  • New Topic