Created
May 20, 2021 14:59
-
-
Save marcan2020/1c748c48a392545040079782d45adc31 to your computer and use it in GitHub Desktop.
shc_decompress.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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