macOS
brew install hashcashlocal Homebrew formula metadata
安装
brew install hashcashlocal Homebrew formula metadata
sudo apk add hashcashAlpine Linux edge package indexes · hashcash · 来源: dl-cdn.alpinelinux.org
sudo apt install hashcashDebian stable package indexes · hashcash · 来源: deb.debian.org
nix profile install nixpkgs#hashcashnixpkgs package indexes · pkgs/by-name/ha/hashcash/package.nix · 来源: api.github.com
概览
Proof-of-work algorithm to counter denial-of-service (DoS) attacks
历史
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
hashcash | cli | 全局可执行文件 | |
sha1 | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | 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 |
| Pulse | updated |
| 依赖 | openssl@4 |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | hashcash |
| Version Scheme | 0 |
| Revision | 2 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
hashcash 1.22-2
postage payment scheme for email based on hash calculations
sudo apt install hashcashhashcash
nix profile install nixpkgs#hashcashhashcash 1.22-1
postage payment scheme for email based on hash calculations
sudo apt install hashcashhashcash 1.22-r0
Proof-of-work algorithm for denial-of-service counter measures
sudo apk add hashcashhashcash-doc 1.22-r0
Proof-of-work algorithm for denial-of-service counter measures (documentation)
sudo apk add hashcash-doc来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.