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

## 软件包事实

- **软件包键:** brew:enchive
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/enchive>
- **版本:** 3.5
- **来源摘要:** Encrypted personal archives
- **主页:** <https://github.com/skeeto/enchive>
- **仓库:** <https://github.com/skeeto/enchive>
- **上游文档:** <https://github.com/skeeto/enchive#readme>
- **许可证:** Unlicense
- **源码归档:** <https://github.com/skeeto/enchive/releases/download/3.5/enchive-3.5.tar.xz>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- enchive (cli)
- enchive (别名)

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 3.5
- 本地数据: OK
- 上游仓库: https://github.com/skeeto/enchive
- 信息: No package-manager update timestamp was available.
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

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
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** enchive
- **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 - 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.6: normalized package name match | openSUSE Tumbleweed package metadata: enchive from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Long-term archive encryption tool | https://github.com/skeeto/enchive


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [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.
- [Archive and compression packages](https://www.automicvault.com/zh-hans/pkg/archive-compression-tools/) - Matched archive or compression metadata.
- [encfs](https://www.automicvault.com/zh-hans/pkg/brew/encfs/) - 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.
- [nettle](https://www.automicvault.com/zh-hans/pkg/brew/nettle/) - Shares av.db curated category or tags: cli, encryption, security.
- [openbao](https://www.automicvault.com/zh-hans/pkg/brew/openbao/) - Shares av.db curated category or tags: cli, encryption, security.
- [pwsafe](https://www.automicvault.com/zh-hans/pkg/brew/pwsafe/) - Shares av.db curated category or tags: cli, encryption, security.
- [reop](https://www.automicvault.com/zh-hans/pkg/brew/reop/) - Shares av.db curated category or tags: cli, encryption, security.
- [sqlcipher](https://www.automicvault.com/zh-hans/pkg/brew/sqlcipher/) - Shares av.db curated category or tags: cli, encryption, security.
- [staticrypt](https://www.automicvault.com/zh-hans/pkg/npm/staticrypt/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, encrypted, encryption, file, security.
- [age](https://www.automicvault.com/zh-hans/pkg/brew/age/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, encryption, file, security.

## Combined YAML source

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


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- 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
