resign-jwt

Crates.ioresign-jwt
lib.rsresign-jwt
version0.1.0
sourcesrc
created_at2019-07-03 13:51:45.835788
updated_at2019-07-03 13:51:45.835788
descriptionAllows you to quickly and safely resign a jwt
homepage
repositoryhttps://github.com/Gisleburt/resign-jwt
max_upload_size
id145633
size6,839
Daniel Mason (Gisleburt)

documentation

README

resign-jwt

A tool for re-signing jwts. For example, you may have a development environment that needs a JWT, but does not have the ability to create them. This tool allows you to re-sign a jwt from another environment with the secret for your development environment.

Install

cargo install -f resign-jwt

Usage

You can see usage at any time with --help

resign-jwt --help

Typically you'll want to provide three things

  • the old --jwt (-j) (note: you only need to provide the first two parts if you have security concerns)
  • the --algorithm (-a) to use (currently only HSxxx algorithms below, see issues)
  • the new --key (-k) to use for signing
resign-jwt \
  --jwt eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6ImhlbGxvQGV4YW1wbGUuY29tIn0= \
  --algorithm HS256 \
  --key some-key
Commit count: 7

cargo fmt