LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

jwt

encodes and decodes JSON Web Tokens

TLDR

Decode JWT
$ jwt decode [token]
copy
Encode JWT
$ jwt encode --secret [secret] --payload '[{"sub":"user"}]'
copy
Decode without verification
$ jwt decode --no-verify [token]
copy
Show header
$ jwt decode --header [token]
copy
Encode with algorithm
$ jwt encode --alg [HS256] --secret [key] --payload '[{}]'
copy

SYNOPSIS

jwt command [options]

DESCRIPTION

jwt encodes and decodes JSON Web Tokens. It creates and verifies JWTs for authentication systems.The tool supports various signing algorithms. It displays token contents for debugging.

PARAMETERS

decode TOKEN

Decode JWT token.
encode
Create JWT token.
--secret SECRET
Signing secret/key.
--payload JSON
Token payload.
--alg ALG
Signing algorithm.
--no-verify
Skip signature verification.
--help
Display help information.

INSTALL

sudo apt install jwt
copy

CAVEATS

Multiple implementations exist. Security sensitive. Verify algorithms carefully.

HISTORY

jwt CLI tools provide command-line access to JSON Web Token encoding and decoding for testing and debugging.

SEE ALSO

openssl(1), jq(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid