JWT CLI
Encode & Decode JWT Tokens
Installation
go install github.com/mehditeymorian/jwt
Commands
# run to see all commands
jwt
Configuration
Different key will be used for encode or decode base on the token algorithm. The interactive
field indicates if user input is taken from options or user choose from a set of prompts.
interactive: true
rsa:
public_key: |-
key
private_key: |-
key
hmac:
key: key
base64_encoded: false
ecdsa:
public_key: |-
key
private_key: |-
key
Set Config
- Use
-c
option to pass config path
- Put
jwt-config.(yaml|yml)
where you run the jwt cli
- Default configuration, which is located at
/etc/jwt/config.yaml
Contribution
Any contribution in any form is welcomed. Open an issue to discuss about it.
License
Unless otherwise noted, the JWT source files are distributed under the Apache Version 2.0 license found in the LICENSE file.