DOKK / manpages / debian 10 / python-jwt / pyjwt.1.en
PYJWT(1) User Commands PYJWT(1)

pyjwt - Python implementation of JSON Web Token

pyjwt [options] <command> [options] input

Encodes or decodes JSON Web Tokens based on input

show program's version number and exit
show this help message and exit
ignore signature verification on decode
set the secret key to sign with
set crypto algorithm to sign with. default=HS256

use to encode a supplied payload
use to decode a supplied JSON web token

Decoding:

pyjwt --key=secret decode json.web.token

pyjwt decode --no-verify json.web.token

Encoding requires the key option and takes space separated key/value pairs separated by equals (=) as input.

Examples:

pyjwt --key=secret encode iss=me exp=1302049071

pyjwt --key=secret encode foo=bar exp=+10

The exp key is special and can take an offset to current Unix time.

Jeff Lindsay <progrium@gmail.com>

This manual page was written by Daniele Tricoli <eriol@mornie.org>, for the Debian project (but may be used by others).

Dec 2018 pyjwt 1.7.0