# 使用 Homebrew, dnf, MacPorts 安装 bcrypt

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

## 安装

```sh
sudo av install brew:bcrypt
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install bcrypt
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install bcrypt
```

  证据: MacPorts ports tree: security/bcrypt/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- dnf (92%):

```sh
sudo dnf install bcrypt
```

  证据: Fedora Rawhide package metadata: bcrypt from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

## 软件包事实

- **软件包键:** brew:bcrypt
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/bcrypt>
- **版本:** 1.1
- **来源摘要:** Cross platform file encryption utility using blowfish
- **主页:** <https://bcrypt.sourceforge.net/>
- **上游文档:** <https://bcrypt.sourceforge.net/>
- **许可证:** BSD-3-Clause
- **源码归档:** <https://bcrypt.sourceforge.net/bcrypt-1.1.tar.gz>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- bcrypt (cli)
- bcrypt (别名)

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 1.1
- 本地数据: OK
- 上游仓库: https://bcrypt.sourceforge.net/
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

bcrypt is a small cross-platform command-line file encryption utility built around the Blowfish block cipher, not the later password-hashing scheme that shares the same name. Its public SourceForge page and bundled README describe a Unix-style tool that encrypts files to .bfe files, optionally compresses input, and securely overwrites originals before removal.

### 项目历史

Johnny Shelley published bcrypt 1.1 in 2002 under a BSD-style license. The project page ties the tool directly to Bruce Schneier's 1993 Blowfish algorithm and Paul Kocher's public Blowfish implementation, with local changes shipped in the bcrypt source archive.

The 1.1 release notes emphasize portability work: bcrypt had been tested across FreeBSD, OpenBSD, Linux, Cygwin, Win32, Solaris, Mac OS X 10.1 Server, HP-UX, Alpha, MIPS, PPC, SPARC, and other systems. The same notes warn users upgrading from 1.0 on some unsupported architectures to decrypt and re-encrypt files because early portability bugs could affect compatibility.

### 采用历史

bcrypt's adoption pattern is typical of early-2000s security utilities: a small upstream tarball, a SourceForge homepage, and packaging by Unix-like distributions for users who wanted a simple local file encryptor. The Homebrew, Fedora, and MacPorts package names preserve that utility even though modern searches for 'bcrypt' usually find password hashing libraries instead.

### 使用方式

The documented interface is deliberately small: run bcrypt on one or more files, producing .bfe encrypted files; run it again on .bfe input to decrypt. Options control stdout output, compression, removal of input files, and the number of overwrite passes before deletion.

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

For package historians, bcrypt is interesting because it is a name collision frozen in package indexes: this package is a Blowfish file-encryption CLI, while 'bcrypt' is now better known as a password hashing algorithm. It also captures a period when secure deletion, endian portability, source tarballs, GPG signatures, and cross-architecture binary compatibility were front-and-center concerns for small security packages.

### 时间线

- 1993: Bruce Schneier publishes the Blowfish algorithm, which bcrypt later uses.
- 2002: bcrypt 1.1 is released by Johnny Shelley with bug fixes, broader operating-system support, better speed, and lower memory use.
- 2000s-2020s: Unix package managers continue carrying bcrypt as a niche file-encryption utility.

### Related projects

- Blowfish is the cipher family named by the bcrypt documentation as the cryptographic basis for the tool.
- zlib is the compression dependency documented for the source build.
- Modern bcrypt password-hashing libraries are related mainly by name and Blowfish lineage; they are not the same package or interface.

### 来源

- <https://bcrypt.sourceforge.net/>
- <https://bcrypt.sourceforge.net/bcrypt-1.1.tar.gz>
- source_facts.package-manager


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

## 源数据库详情

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

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

- dnf - bcrypt - 1.1-40.fc44: normalized package name match | Fedora Rawhide package metadata: bcrypt from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | File encryption utility | http://bcrypt.sourceforge.net/
- MacPorts - bcrypt: normalized package name match | MacPorts ports tree: security/bcrypt/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Security and crypto packages](https://www.automicvault.com/zh-hans/pkg/security-crypto-tools/) - Matched security, identity, cryptography, password, signing, or certificate metadata.
- [rage](https://www.automicvault.com/zh-hans/pkg/brew/rage/) - Shares av.db curated category or tags: cli, cryptography, encryption, file-encryption, security.
- [cryfs](https://www.automicvault.com/zh-hans/pkg/brew/cryfs/) - Shares av.db curated category or tags: cli, encryption, security.
- [dislocker](https://www.automicvault.com/zh-hans/pkg/brew/dislocker/) - Shares av.db curated category or tags: cli, encryption, security.
- [git-crypt](https://www.automicvault.com/zh-hans/pkg/brew/git-crypt/) - Shares av.db curated category or tags: cli, encryption, security.
- [git-remote-gcrypt](https://www.automicvault.com/zh-hans/pkg/brew/git-remote-gcrypt/) - Shares av.db curated category or tags: cli, encryption, security.
- [gocryptfs](https://www.automicvault.com/zh-hans/pkg/brew/gocryptfs/) - Shares av.db curated category or tags: cli, encryption, security.
- [shush](https://www.automicvault.com/zh-hans/pkg/brew/shush/) - Shares av.db curated category or tags: cli, encryption, security.
- [ssh-vault](https://www.automicvault.com/zh-hans/pkg/brew/ssh-vault/) - Shares av.db curated category or tags: cli, encryption, security.
- [bcryptjs](https://www.automicvault.com/zh-hans/pkg/npm/bcryptjs/) - Executable or command metadata overlaps with this package. Shared terms: bcrypt, cli, cryptography, encryption, security.
- [ccrypt](https://www.automicvault.com/zh-hans/pkg/brew/ccrypt/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, cryptography, encryption, file, security.

## Combined YAML source

View the package source record on GitHub. [combined/bcrypt.yml](https://github.com/automic-vault/db/blob/main/combined/bcrypt.yml)


## 来源

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