# 使用 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

## 软件包事实

- **软件包键:** brew:bcrypt
- **软件包管理器:** Homebrew
- **版本:** 1.1
- **来源摘要:** Cross platform file encryption utility using blowfish
- **主页:** <https://bcrypt.sourceforge.net/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- bcrypt (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.1
## 项目历史与用法

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

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

- dnf - bcrypt - 1.1-41.fc45: normalized package name match | Fedora Rawhide package metadata: bcrypt from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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


## Combined YAML source

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


## 来源

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