# 使用 Homebrew, Nix, zypper 安装 enchive

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

## 安装

```sh
sudo av install brew:enchive
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install enchive
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#enchive
```

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

- zypper (92%):

```sh
sudo zypper install enchive
```

  证据: openSUSE Tumbleweed package metadata: enchive from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:enchive
- **软件包管理器:** Homebrew
- **版本:** 3.5
- **来源摘要:** Encrypted personal archives
- **主页:** <https://github.com/skeeto/enchive>
- **仓库:** <https://github.com/skeeto/enchive>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- enchive (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Enchive is a small personal-file encryption tool for archiving files to yourself. Its README positions it as a focused alternative to larger systems such as GnuPG or encrypted filesystems, with no external dependencies and portability prioritized over performance.

### 项目历史

The public repository dates to 2017, and the project's own documentation frames it as intentionally self-contained rather than ecosystem-seeking. It uses public-key style archival: a public key can encrypt files on machines that should not hold the secret key, while the secret key is needed for extraction.

### 采用历史

Enchive's README explicitly says it does not need critical mass because it does not need to interoperate with other systems or people. Its adoption story is therefore narrow by design: it appeals to users who want a copyable, auditable CLI for personal encrypted archives rather than a shared standard.

### 使用方式

The documented workflow has three core commands: `keygen`, `archive`, and `extract`. By default, `keygen` writes `enchive.pub` and `enchive.sec` under `$XDG_CONFIG_HOME/enchive` or `~/.config/enchive`; archiving produces a `.enchive` file while leaving the original in place unless deletion is requested.

The tool also supports deriving an asymmetric key pair from a passphrase, using an scrypt-like memory-hard derivation scheme, and can run a short-lived key agent on Unix-like systems to avoid repeated passphrase prompts.

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

Enchive is package-nerd interesting because it is deliberately small: one CLI, no external dependencies, a documented file format, and a build that can produce a standalone C program. It represents the opposite end of the packaging spectrum from large crypto suites.

The tradeoff is visible in the README: Enchive is not trying to be a universal format or social web of keys. It is for users who want a simple local archival workflow and are comfortable choosing a niche tool for that job.

### 时间线

- 2017: Public GitHub repository created.
- 2018: Published manual page generated for Enchive.
- 2025: Repository remained updated, according to available GitHub metadata.

### Related projects

- GnuPG and encrypted filesystems are named by the README as more complex alternatives.
- Curve25519, ChaCha-family encryption, HMAC-SHA256, and an scrypt-like key derivation algorithm are documented implementation pieces.

### 来源

- <https://github.com/skeeto/enchive>
- <https://raw.githubusercontent.com/skeeto/enchive/master/README.md>
- <https://nullprogram.com/enchive/>
- <https://api.github.com/repos/skeeto/enchive>


## 安全说明

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

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


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: $XDG_CONFIG_HOME/enchive/enchive.pub, ~/.config/enchive/enchive.pub

## Credential files

- Unix: $XDG_CONFIG_HOME/enchive/enchive.sec, ~/.config/enchive/enchive.sec
## 其他软件包管理器记录

- Nix - enchive: normalized package name match | nixpkgs package indexes: pkgs/by-name/en/enchive/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- zypper - enchive - 3.5-2.8: normalized package name match | openSUSE Tumbleweed package metadata: enchive from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Long-term archive encryption tool | https://github.com/skeeto/enchive


## Combined YAML source

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


## 来源

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