Skip to content

Instantly share code, notes, and snippets.

@marcan2020
Created May 20, 2021 14:59
Show Gist options
  • Save marcan2020/1c748c48a392545040079782d45adc31 to your computer and use it in GitHub Desktop.
Save marcan2020/1c748c48a392545040079782d45adc31 to your computer and use it in GitHub Desktop.
shc_decompress.py
import zlib
# https://bugs.python.org/issue5784
shc_data = zlib.decompress(jws_parts[1], wbits=-15)
print("SHC Data:", shc_data)
# SHC Data: {"iss":"https://c19.cards/issuer","nbf":1591037940,"vc":{"type":["https://smarthealth.cards#covid19", ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment