macOS
brew install libgcryptlocal Homebrew formula metadata
sudo port install libgcryptMacPorts ports tree · devel/libgcrypt/Portfile · 来源: api.github.com
安装
brew install libgcryptlocal Homebrew formula metadata
sudo port install libgcryptMacPorts ports tree · devel/libgcrypt/Portfile · 来源: api.github.com
sudo apk add libgcryptAlpine Linux edge package indexes · libgcrypt · 来源: dl-cdn.alpinelinux.org
sudo dnf install libgcryptFedora Rawhide package metadata · libgcrypt · 来源: dl.fedoraproject.org
nix profile install nixpkgs#libgcryptnixpkgs package indexes · pkgs/by-name/li/libgcrypt/package.nix · 来源: api.github.com
sudo pacman -S libgcryptArch Linux sync databases · libgcrypt · 来源: geo.mirror.pkgbuild.com
sudo zypper install libgcrypt-developenSUSE Tumbleweed package metadata · libgcrypt-devel · 来源: download.opensuse.org
概览
Cryptographic library based on the code from GnuPG
历史
Libgcrypt is the GnuPG project's standalone cryptographic building-block library, split out so applications could use GnuPG-derived primitives without embedding the OpenPGP implementation itself. It matters in package ecosystems because it is a low-level C library whose ABI promises, security releases, and CPU-specific optimizations ripple into many security-sensitive applications.
The GnuPG project describes Libgcrypt as a general-purpose cryptographic library originally based on GnuPG code. GnuPG news and release material show the library becoming a separately versioned component by the early 2000s, with a 2003 alpha-series announcement for Libgcrypt 1.1.42 and later 1.2.x, 1.4.x, 1.5.x, 1.7.x, 1.8.x, 1.10.x, and 1.12.x release lines.
Its scope grew from the cryptographic code needed by GnuPG into a broad primitive library covering symmetric ciphers, hashes, MACs, public-key algorithms, multi-precision integers, random-number generation, S-expressions, FIPS-related behavior, and helper tools. The project page also records a packaging-relevant compatibility policy: Libgcrypt versions since 1.2 keep API and ABI compatibility.
Libgcrypt's adoption follows GnuPG's split-library architecture: GnuPG and related projects can share a maintained cryptographic core while packagers ship it as an independent system library. Homebrew, Linux distributions, Nix, MacPorts, and other package managers expose it as a separate package because many consumers need the library without installing or rebuilding the whole GnuPG stack.
The GnuPG release stream treats Libgcrypt security updates as first-class events. Multiple GnuPG news entries call out Libgcrypt releases for side-channel fixes, stable-branch compatibility, new algorithms, and random-number-generator work, which is why downstream maintainers track it closely.
Developers link against Libgcrypt when they need a C API for cryptographic primitives, MPI arithmetic, random bytes, or S-expression-based public-key operations. The command-line helpers packaged with it, such as hmac256 and mpicalc, are secondary to the library but useful for testing and small operational tasks.
The library intentionally does not provide a complete OpenPGP protocol implementation; it supplies lower-level cryptographic operations. That boundary is important for users choosing between Libgcrypt, GPGME, and the GnuPG command-line tools.
For package maintainers, Libgcrypt is a classic shared-library dependency: small on the surface, but security-critical, ABI-sensitive, and tied to CPU feature detection, FIPS behavior, and distribution hardening policies. Its separate release branches let downstreams apply fixes without forcing an application-level GnuPG upgrade.
Its long API/ABI compatibility promise since 1.2 is unusually package-friendly for a cryptographic C library and helps explain why it appears broadly across Unix-like package sets.
安全态势
没有找到 libgcrypt 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
dumpsexp | cli | 全局可执行文件 | |
hmac256 | cli | 全局可执行文件 | |
libgcrypt-config | cli | 全局可执行文件 | |
mpicalc | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://gnupg.org/related_software/libgcrypt/
安装元数据
| 软件包键 | brew:libgcrypt |
|---|---|
| 版本 | 1.12.2 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/libgcrypt |
| 主页 | https://gnupg.org/related_software/libgcrypt/ |
| 仓库 | https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git |
| 上游文档 | https://www.gnupg.org/documentation/manuals/gcrypt |
| 许可证 | LGPL-2.1-or-later AND GPL-2.0-or-later |
| 源码归档 | https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-1.12.2.tar.bz2 |
| 最后更新 | 2026-06-22T14:05:17-07:00 |
| Pulse | updated |
| 依赖 | libgpg-error |
| 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 | libgcrypt |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
libgcrypt
nix profile install nixpkgs#libgcryptlibgcrypt 1.12.2-r0
General purpose crypto library based on the code used in GnuPG
sudo apk add libgcryptlibgcrypt-dev 1.12.2-r0
General purpose crypto library based on the code used in GnuPG (development files)
sudo apk add libgcrypt-devlibgcrypt-doc 1.12.2-r0
General purpose crypto library based on the code used in GnuPG (documentation)
sudo apk add libgcrypt-doclibgcrypt-static 1.12.2-r0
General purpose crypto library based on the code used in GnuPG (static library)
sudo apk add libgcrypt-staticlibgcrypt 1.12.2-1.fc45
A general-purpose cryptography library
sudo dnf install libgcryptlibgcrypt-devel 1.12.2-1.fc45
Development files for the libgcrypt package
sudo dnf install libgcrypt-devellibgcrypt 1.12.2-1
General purpose cryptographic library based on the code from GnuPG
sudo pacman -S libgcryptlibgcrypt-devel 1.12.2-1.2
The GNU Crypto Library
https://gnupg.org/software/libgcrypt
sudo zypper install libgcrypt-devellibgcrypt-devel-32bit 1.12.2-1.2
The GNU Crypto Library
https://gnupg.org/software/libgcrypt
sudo zypper install libgcrypt-devel-32bitlibgcrypt-devel-x86-64-v3 1.12.2-1.2
The GNU Crypto Library
https://gnupg.org/software/libgcrypt
sudo zypper install libgcrypt-devel-x86-64-v3libgcrypt20 1.12.2-1.2
The GNU Crypto Library
https://gnupg.org/software/libgcrypt
sudo zypper install libgcrypt20libgcrypt20-32bit 1.12.2-1.2
The GNU Crypto Library
https://gnupg.org/software/libgcrypt
sudo zypper install libgcrypt20-32bitlibgcrypt20-x86-64-v3 1.12.2-1.2
The GNU Crypto Library
https://gnupg.org/software/libgcrypt
sudo zypper install libgcrypt20-x86-64-v3libgcrypt
sudo port install libgcrypt来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.