jwtdec

command module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2020 License: MIT Imports: 6 Imported by: 0

README

jwtdec

Simple CLI tool for JWT payload parsing in your terminal.

No validation, no configuration, no dependencies in your OS required.

I wrote this because shell tool is more convenient then opening new browser tab with https://jwt.io each time I need to parse JWT.

Screenshot

Installation

Go modules
go get -u github.com/SuddenGunter/jwtdec
Prebuilt binaries

See latest release tag in this repo and just download executable for your OS.

Usage

Colorful output:

./jwtdec eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmb28iOiJiYXIiLCJuYmYiOjE0NDQ0Nzg0MDB9.u1riaD1rW97opCoAuRCTy4w58Br-Zk-bh7vLiRIsrpU
## will output in color:
## {
##  "foo": "bar",
##  "nbf": 1444478400
## }

No color mode:

./jwtdec -nc eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmb28iOiJiYXIiLCJuYmYiOjE0NDQ0Nzg0MDB9.u1riaD1rW97opCoAuRCTy4w58Br-Zk-bh7vLiRIsrpU
## will output:
## {
##  "foo": "bar",
##  "nbf": 1444478400
## }

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL