macOS
brew install libgcryptlocal Homebrew formula metadata
sudo port install libgcryptMacPorts ports tree · devel/libgcrypt/Portfile · source: api.github.com
brew
Cryptographic library based on the code from GnuPG. Version 1.12.2 via Homebrew; verified 2026-06-22.
install
brew install libgcryptlocal Homebrew formula metadata
sudo port install libgcryptMacPorts ports tree · devel/libgcrypt/Portfile · source: api.github.com
sudo apk add libgcryptAlpine Linux edge package indexes · libgcrypt · source: dl-cdn.alpinelinux.org
sudo dnf install libgcryptFedora Rawhide package metadata · libgcrypt · source: dl.fedoraproject.org
nix profile install nixpkgs#libgcryptnixpkgs package indexes · pkgs/by-name/li/libgcrypt/package.nix · source: api.github.com
sudo pacman -S libgcryptArch Linux sync databases · libgcrypt · source: geo.mirror.pkgbuild.com
sudo zypper install libgcrypt-developenSUSE Tumbleweed package metadata · libgcrypt-devel · source: download.opensuse.org
overview
Cryptographic library based on the code from GnuPG
history
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.
security posture
No matching local secret-handling manifest was found for libgcrypt. Nucleus package metadata is still published here so future coverage has a stable package URL.
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
dumpsexp | cli | global executable | |
hmac256 | cli | global executable | |
libgcrypt-config | cli | global executable | |
mpicalc | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://gnupg.org/related_software/libgcrypt/
install metadata
| Package key | brew:libgcrypt |
|---|---|
| Version | 1.12.2 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/libgcrypt |
| Homepage | https://gnupg.org/related_software/libgcrypt/ |
| Repository | https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git |
| Upstream docs | https://www.gnupg.org/documentation/manuals/gcrypt |
| License | LGPL-2.1-or-later AND GPL-2.0-or-later |
| Source archive | https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-1.12.2.tar.bz2 |
| Last updated | 2026-06-22T14:05:17-07:00 |
| Pulse | updated |
| Dependencies | libgpg-error |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| 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 |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
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 libgcryptsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.