A command line tool to work with JSON Web Tokens (JWTs). Encryption algorithms available are HS256, HS384, HS512, RS256, RS384, RS512, ES256, ES384.
# To decode a JWT:
jwt decode <jwt_string>
# To decode a JWT as a JSON string:
jwt decode -j <jwt_string>
# To encode a JSON string to a JWT:
jwt encode --alg <HS256> --secret <1234567890> '<json_string>'
# To encode key pair payload to JWT:
jwt encode --alg <HS256> --secret <1234567890> -P key=value