Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, Nix 安装 hashcash

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install hashcash

local Homebrew formula metadata

Linux

Alpine Linux apk已验证 · 92%
sudo apk add hashcash

Alpine Linux edge package indexes · hashcash · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install hashcash

Debian stable package indexes · hashcash · 来源: deb.debian.org

Nix已验证 · 92%
nix profile install nixpkgs#hashcash

nixpkgs package indexes · pkgs/by-name/ha/hashcash/package.nix · 来源: api.github.com

概览

软件包摘要

Proof-of-work algorithm to counter denial-of-service (DoS) attacks

命令和别名

  • hashcash
  • sha1

历史

项目历史与用法

Hashcash is Adam Back's proof-of-work scheme for making a sender spend CPU time before a receiver accepts a message or request. The Homebrew package installs the command-line tool that mints and verifies Hashcash stamps, but the package is historically important because the algorithm became one of the canonical proof-of-work designs referenced by later anti-abuse and cryptocurrency systems.

项目历史

Hashcash was invented by Adam Back in 1997 as a denial-of-service and anti-spam countermeasure. The basic idea was to attach a stamp to a message; the sender expends adjustable computational work to mint the stamp, while the recipient can verify it cheaply. The official site describes both the algorithm and the email tool as `hashcash`, which is why the package combines a security idea with a concrete Unix-style command.

The command-line documentation presents the package as a tool for minting stamps, checking stamps, estimating work, purging spent-stamp databases, counting partial preimage bits, and extracting resource names. The implementation used SHA1 partial preimages for version-1 stamps, with an adjustable bit target and a receiver-side database option for double-spend protection.

采用历史

Hashcash's first adoption story was email anti-spam: senders could attach X-Hashcash headers and receivers could treat valid stamps as a whitelisting signal. The official docs describe a default email validity window and a database of spent stamps to stop reuse.

The larger adoption story came later through Bitcoin. Hashcash.org explicitly describes Hashcash as the mining function used in Bitcoin, while also explaining the differences: Bitcoin uses SHA-256 rather than SHA1, double hashing, and a more finely adjusted network difficulty. That made Hashcash a bridge between cypherpunk anti-spam tools and package-manager-visible cryptocurrency infrastructure.

使用方式

The `hashcash` executable can mint stamps with `-m`, check them with `-c`, estimate work with `-s`, purge spent-stamp databases with `-p`, and count proof bits with `-w`. In email use, the resource is typically a recipient address, and the stamp can be placed in an X-Hashcash header.

The package is also useful as a reference implementation. The official site notes that the algorithm is simple enough to implement from scratch with a hash library and that verification can be understood as counting leading zero bits in a hash output.

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

Hashcash is one of those packages whose code footprint is much smaller than its historical footprint. It is a command-line tool for an old anti-spam mechanism, but it also preserves a concrete implementation of proof-of-work in the Unix package ecosystem.

For package nerds, Hashcash matters because it connects mail-era anti-abuse tooling, command-line cryptographic utilities, source tarballs rather than modern hosted repos, and the intellectual lineage of Bitcoin mining. Its Homebrew formula keeps a small historical security tool installable long after its original email-spam use case stopped being mainstream.

时间线

  • 1997: Adam Back invents Hashcash as a proof-of-work anti-spam and denial-of-service countermeasure.
  • 2002: The Hashcash denial-of-service countermeasure paper is published as a technical report.
  • 2004: Hashcash 1.02 code and the version-1 stamp format are described in the official developer notes and man page.
  • 2009: Bitcoin launches using a Hashcash-style proof-of-work mining function with SHA-256 and network difficulty adjustment.
  • 2013: Hashcash.org's Bitcoin notes compare Bitcoin difficulty with Hashcash bit difficulty and explain the conceptual relationship.

Related projects

  • Bitcoin uses a Hashcash-style mining function with SHA-256 and dynamic difficulty.
  • RPOW is discussed by Hashcash.org as an earlier reusable proof-of-work system in the same design family.
  • Email anti-spam systems and X-Hashcash headers are the original deployment target for the command-line tool.

来源

  • Official Hashcash home page, man page, developer notes, source page, and Bitcoin comparison page.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 1 个运行时依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
hashcashcli全局可执行文件
sha1cli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-08
管理器版本1.22
管理器更新时间2026-06-22
本地数据OK
上游not checked
检测到的最新版本未检测到

http://hashcash.org

  • 信息Release/tag comparison is only available for GitHub repositories.http://hashcash.orgnone 置信度

安装元数据

软件包元数据

软件包键brew:hashcash
版本1.22
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/hashcash
主页http://hashcash.org
上游文档http://www.hashcash.org/docs/hashcash.html
许可证LicenseRef-Homebrew-public-domain OR BSD-3-Clause OR LGPL-2.1-only OR GPL-2.0-only
源码归档https://deb.debian.org/debian/pool/main/h/hashcash/hashcash_1.22.orig.tar.gz
最后更新2026-06-22T14:03:42-07:00
Pulseupdated
依赖openssl@4
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namehashcash
Version Scheme0
Revision2
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

hashcash 1.22-2

postage payment scheme for email based on hash calculations

http://hashcash.org/

sudo apt install hashcash
  • Section: mail
  • Architecture: amd64
  • 1 依赖
  • normalized package name match
  • 匹配方式:Hashcash
Debian stable package indexes · deb.debian.org · Debian stable package indexes: hashcash from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

hashcash

nix profile install nixpkgs#hashcash
  • normalized package name match
  • 匹配方式:Hashcash
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ha/hashcash/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

hashcash 1.22-1

postage payment scheme for email based on hash calculations

http://hashcash.org/

sudo apt install hashcash
  • Section: universe/mail
  • Architecture: amd64
  • 1 依赖
  • normalized package name match
  • 匹配方式:Hashcash
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: hashcash from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

hashcash 1.22-r0

Proof-of-work algorithm for denial-of-service counter measures

http://www.hashcash.org/

sudo apk add hashcash
  • License: Public-Domain
  • Architecture: x86_64
  • Source Package: hashcash
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Hashcash
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: hashcash from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

hashcash-doc 1.22-r0

Proof-of-work algorithm for denial-of-service counter measures (documentation)

http://www.hashcash.org/

sudo apk add hashcash-doc
  • License: Public-Domain
  • Architecture: x86_64
  • Source Package: hashcash
  • normalized package name match
  • 匹配方式:Hashcash
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: hashcash-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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