This repo contains the code used to learn how to create and verify JWTs using Python and PyJWT. ;)
- Python >= 3.6
Grab the repo and install the dependencies.
pip install -U pip
pip install -r requirements.txt
python examples/okp.py
Script | Description |
---|---|
examples/hs256.py |
Creates and prints out a JWT using the HS256 algorithm |
examples/rs256.py |
Creates and prints out a JWT using the RS256 algorithm |
examples/es256.py |
Creates and prints out a JWT using the ES256 algorithm |
examples/okp.py |
Creates and prints out a JWT using the Ed25519 algorithm |
examples/ps256.py |
Creates and prints out a JWT using the PS256 algorithm |