This tool allows to decrypt JSON Web Tokens called JWT (pronounced as jot
). It just decodes the token and prints the JSON contents.
The suggested pronunciation of JWT is the same as the English word "jot".
pbpaste | jotty -f - jotty -f test/jwt.txt jotty <jwt token data> pbpaste | jotty -f - --header=false --signature=false
Sample JWt from https://jwt.io
link:test/jwt.txt[role=include]
-f, --file string
-
--file=<filename> read token from file or - from stdin
-h, --header
-
--header=false don’t print the header of the JWT (default true)
-?, --help
-
--help print usage information
-p, --payload
-
--payload=false don’t print the payload of the JWT (default true)
-s, --signature
-
--signature=false don’t print the signature of the JWT (default true)
-v, --version
-
--version print version information