# 使用 Homebrew, Nix 安装 jwt-hack

查看 jwt-hack 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:jwt-hack
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install jwt-hack
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#jwt-hack
```

  证据: nixpkgs package indexes: pkgs/by-name/jw/jwt-hack/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:jwt-hack
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/jwt-hack>
- **版本:** 2.6.0
- **来源摘要:** JSON Web Token Hack Toolkit
- **主页:** <https://github.com/hahwul/jwt-hack>
- **仓库:** <https://github.com/hahwul/jwt-hack>
- **许可证:** MIT
- **源码归档:** <https://github.com/hahwul/jwt-hack/archive/refs/tags/v2.6.0.tar.gz>
- **最后更新:** 2026-06-05T20:50:17Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- jwt-hack (cli)
- jwt-hack (别名)

## 依赖

- openssl@4

## 构建依赖

- pkgconf
- rust

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.6.0
- 管理器更新时间: 2026-06-05
- 本地数据: OK
- 上游仓库: https://github.com/hahwul/jwt-hack
- 检测到的最新版本: v2.6.0 (当前)
## 项目历史与用法

jwt-hack is a JSON Web Token security-testing toolkit for encoding, decoding, verifying, cracking weak secrets, generating attack payloads, and scanning tokens for common JWT mistakes.

### 项目历史

The maintainer, Hahwul, described creating jwt-hack in October 2020 as a Go tool born from a personal need to make JWT security testing more convenient, initially centered on cracking JWT signing secrets with wordlists or brute force. GitHub release metadata records v1.0.0 on August 31, 2020, which lines up with that early public project period.

On June 6, 2025, the maintainer announced jwt-hack v2 as a complete Rust rewrite. The stated motivations were better stability through Rust's ownership model and improved performance; later README material shows the Rust-era tool expanding into JWE support, DEFLATE-compressed JWT handling, scan mode, API server mode, Docker images, Snapcraft, and MCP server mode.

### 采用历史

jwt-hack's adoption is mainly within offensive-security, bug-bounty, and application-security workflows rather than general JWT debugging. Its README documents installation through Cargo, Homebrew, Snapcraft, source builds, GHCR, and Docker Hub, which makes it portable across local labs, CI jobs, and containerized testing environments.

### 使用方式

Typical use cases include decoding suspicious tokens, generating algorithm-confusion or header-based payloads, testing weak HMAC secrets with dictionaries or brute force, validating signatures, and running a scan that checks for weak secrets, missing claims, `none` algorithm acceptance, algorithm confusion, and header injection vectors.

### 为什么软件包爱好者会关心

For package nerds, jwt-hack is the security-tool counterpart to simpler JWT viewers: it packages practical JWT attack primitives into a single installable CLI and shows the 2020s shift from Go security utilities toward Rust rewrites where maintainers care about memory safety and distributable binaries.

### 时间线

- 2020-08-31: v1.0.0 GitHub release published.
- 2020-10: Maintainer describes the original Go tool as created for convenient JWT security testing.
- 2025-06-06: v2.0.0 released and announced as a complete Rust rewrite.
- 2025-08-29: v2.2.0 release line adds JWE and EdDSA-oriented functionality in the Rust era.
- 2026-06-05: v2.6.0 GitHub release published.

### Related projects

- jwt-hack relates to JWT.io and jwt-cli for inspection and encoding, but it is closer in spirit to web-application security tools because it includes cracking, payload generation, and vulnerability scanning.

### 来源

- <https://crates.io/crates/jwt-hack>
- <https://github.com/hahwul/jwt-hack>
- <https://github.com/hahwul/jwt-hack/releases>
- <https://www.hahwul.com/blog/2025/jwt-hack-v2/>
- <https://www.rfc-editor.org/rfc/rfc7519>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** jwt-hack
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 其他软件包管理器记录

- Nix - jwt-hack: normalized package name match | nixpkgs package indexes: pkgs/by-name/jw/jwt-hack/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [openssl@4](https://pkg.so/zh-hans/brew/openssl-4/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [jwt-cli](https://pkg.so/zh-hans/brew/jwt-cli/) - Shares pkgdb curated category or tags: cli, jwt, security, token.
- [jwt-ui](https://pkg.so/zh-hans/brew/jwt-ui/) - Shares pkgdb curated category or tags: cli, jwt, security, token.
- [echidna](https://pkg.so/zh-hans/brew/echidna/) - Shares pkgdb curated category or tags: cli, security, testing.
- [forbidden](https://pkg.so/zh-hans/brew/forbidden/) - Shares pkgdb curated category or tags: cli, pentesting, security.
- [ldeep](https://pkg.so/zh-hans/brew/ldeep/) - Shares pkgdb curated category or tags: cli, pentesting, security.
- [legba](https://pkg.so/zh-hans/brew/legba/) - Shares pkgdb curated category or tags: cli, security, testing.
- [gnutls](https://pkg.so/zh-hans/brew/gnutls/) - Shares pkgdb curated category or tags: cli, security.
- [krb5](https://pkg.so/zh-hans/brew/krb5/) - Shares pkgdb curated category or tags: cli, security.
- [jose](https://pkg.so/zh-hans/brew/jose/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, jwt, openssl, openssl-4, security.
- [easy-rsa](https://pkg.so/zh-hans/brew/easy-rsa/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, openssl, openssl-4, security.

## Combined YAML source

View the package source record on GitHub. [combined/jwt-hack.yml](https://github.com/mxcl/pkgdb/blob/main/combined/jwt-hack.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
