Skip to content

Instantly share code, notes, and snippets.

@maartenk
maartenk / jwtpeek.py
Created October 22, 2018 13:02 — forked from sklemer1/jwtpeek.py
Show the content of a JWT (and decrypt and/or verify it along the way)
#!/usr/bin/env python3
# Thanks to @rohe Roland Hedberg for most of the lines in this script :).
import argparse
import os
import sys
import json
from pygments import highlight
from pygments.lexers import JsonLexer