{"repo":"lmammino/jwtinfo","free":true,"listed":false,"github":"https://github.com/lmammino/jwtinfo","clone":"git clone https://github.com/lmammino/jwtinfo.git","description":"A command-line tool to get information about JWTs (Json Web Tokens)","language":"Rust","stars":86,"topics":["jwt","inspector","helper","info","token","jwtinfo","cli"],"license":"MIT","category":"cli-tools","readme_excerpt":"jwtinfo - No verification - focused on inspection and debugging, not validation - JWE support - detects encrypted tokens and handles them appropriately Usage jwtinfo is a command line interface that allows you to inspect a given JWT. The tool currently allows you to see the body of the token in JSON format. It accepts a single command line argument which should be a valid JWT. Here's an example: Which will print: If you want to visualize the token header (rather than the body), you can do that by passing the --header flag: Which will print: If you want to see both the header and the claims at the same time, you can use the --full flag: Which will print: For better readability, you can combine --full with the --pretty flag to get formatted output: Which will print: You can combine the tool with other command line utilities, for instance [ jq : [!NOTE] Encrypted JWE Tokens : If you provide an encrypted JWE token (JSON Web Encryption), the tool will detect it by checking for the enc field in the header. Since JWE tokens are encrypted, the claims/body cannot be read without decryption. In this case, jwtinfo will display the special placeholder string \" \" instead of the actual claims. The header can still be inspected normally using the --header flag. Install You can install the binary in several ways: npm Install via npm (Node.js package manager): Or use npx to run without installing: Homebrew Install via Homebrew (macOS and Linux): Or install directly in one command: Shell Insta","default_branch":null,"files":null,"tree":[],"storefront":"/r/lmammino","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/lmammino/jwtinfo/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}