Skip to content

Instantly share code, notes, and snippets.

View MadMartian's full-sized avatar

MadMartian MadMartian

View GitHub Profile
@MadMartian
MadMartian / shc-jwt.py
Last active March 21, 2022 19:35
Python script to decode SHC-encoded JWTs generated by SmartHealth Cards.
#!/usr/bin/env python3
from sys import stdin, stdout, stderr
import base64
import re
import zlib
import argparse
ap = argparse.ArgumentParser()
ap.add_argument('--header', action='store_true', help='Output the JWT header instead of the payload')