command
Version:
v3.0.0+incompatible
Opens a new window with list of versions in this module.
Published: Jun 16, 2016
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
This is a simple tool to sign, verify and show JSON Web Tokens from
the command line.
The following will create and sign a token, then verify it and output the original claims:
echo {\"foo\":\"bar\"} | bin/jwt -key test/sample_key -alg RS256 -sign - | bin/jwt -key test/sample_key.pub -verify -
To simply display a token, use:
echo $JWT | jwt -show -
Documentation
¶
A useful example app. You can use this to debug your tokens on the command line.
This is also a great place to look at how you might use this library.
Example usage:
The following will create and sign a token, then verify it and output the original claims.
echo {\"foo\":\"bar\"} | bin/jwt -key test/sample_key -alg RS256 -sign - | bin/jwt -key test/sample_key.pub -verify -
Source Files
¶
Click to show internal directories.
Click to hide internal directories.