1 unstable release
0.1.0 | Jul 3, 2019 |
---|
#35 in #safely
6KB
109 lines
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
Dependencies
~7.5MB
~145K SLoC