Encode and decode
Create and inspect JWT and JWE tokens, including DEFLATE-compressed payloads.
JWT Toolkit · Rust
A high-performance toolkit to test, analyze and attack JSON Web Tokens — encode, decode, verify, crack and scan from one fast Rust CLI.
Capabilities
Originally written in Go (2020) and rewritten in Rust for v2 (2025) — jwt-hack pairs everyday token tooling with an offensive toolkit.
Create and inspect JWT and JWE tokens, including DEFLATE-compressed payloads.
Recover weak signing secrets with dictionary and brute-force attacks.
Validate HMAC and RSA/EC signatures against a secret or key.
Automated checks for none-algorithm, algorithm confusion, kid injection and more.
Generate none-algorithm, algorithm-confusion and kid-injection payloads on demand.
A REST API mode plus a Model Context Protocol server for AI-driven tooling.
Quickstart
Illustrative output.