jotty

command module
v0.0.0-...-ab051ac Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

README

= JOTTY - JWT Decoder

image:https://img.shields.io/badge/License-Apache%202.0-blue.svg[link="http://www.apache.org/licenses/LICENSE-2.0"]
image:https://github.com/steffakasid/jotty/actions/workflows/codeql-analysis.yml/badge.svg[link:https://github.com/steffakasid/jotty/actions/workflows/codeql-analysis.yml]
image:https://github.com/steffakasid/jotty/actions/workflows/release.yml/badge.svg[link:https://github.com/steffakasid/jotty/actions/workflows/release.yml]
image:https://github.com/steffakasid/jotty/actions/workflows/go-test.yml/badge.svg[link:https://github.com/steffakasid/jotty/actions/workflows/go-test.yml]

This tool allows to decrypt link:https://jwt.io/[JSON Web Tokens] called JWT (pronounced as `jot`). It just decodes the token and prints the JSON contents.

[quote, https://datatracker.ietf.org/doc/html/rfc7519#section-1]
The suggested pronunciation of JWT is the same as the English word "jot".

== Usage

jotty [flags] <jwt-data>

or reading data from pipe

some-other-tool | jotty -f -

== Examples

  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
[source,txt]
----
include::test/jwt.txt[]
----

== Flags

`-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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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