pyjwt3(1)

pyjwt31

Python implementation of json web token

Usage

pyjwt3 [options] <command> [options] input

Overview

Encodes or decodes JSON Web Tokens based on input

Options

--version

show program's version number and exit

-h, --help

show this help message and exit

-n, --no-verify

ignore signature verification on decode

--key=KEY

set the secret key to sign with

--alg=ALG

set crypto algorithm to sign with. default=HS256

PyJWT subcommands are: encode and decode.

encode

use to encode a supplied payload

decode

use to decode a supplied JSON web token

Examples

Decoding:

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

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

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

Examples:

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

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

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

Releases

Unchanged in 2 releases since Debian 10 (Buster).

  1. 10–11

Author

Jeff Lindsay <[email protected]>

This manual page was written by Daniele Tricoli <[email protected]>, for the Debian project (but may be used by others).

From python3-jwt 1.7.1-2 in Debian 11 (Bullseye). Parsed by carta from the page's man source.