macOS
brew install libjwtlocal Homebrew formula metadata
sudo port install libjwtMacPorts ports tree · devel/libjwt/Portfile · source: api.github.com
brew
JSON Web Token C library. Version 3.6.1 via Homebrew; verified 2026-06-30.
install
brew install libjwtlocal Homebrew formula metadata
sudo port install libjwtMacPorts ports tree · devel/libjwt/Portfile · source: api.github.com
sudo apk add libjwtAlpine Linux edge package indexes · libjwt · source: dl-cdn.alpinelinux.org
sudo apt install libjwt-devDebian stable package indexes · libjwt-dev · source: deb.debian.org
sudo dnf install libjwtFedora Rawhide package metadata · libjwt · source: dl.fedoraproject.org
nix profile install nixpkgs#libjwtnixpkgs package indexes · pkgs/by-name/li/libjwt/package.nix · source: api.github.com
sudo zypper install libjwt-developenSUSE Tumbleweed package metadata · libjwt-devel · source: download.opensuse.org
overview
JSON Web Token C library
history
LibJWT is a C library for JSON Web Token and adjacent JOSE formats. It gives C programs JWT creation, verification, JWK/JWKS handling, JWS, JWE, and multiple crypto-backend choices without making the application shell out to higher-level language tooling.
Ben Collins moved the Git repository in May 2015, and the v1.0.0 tag is anchored to that early public history. The project later expanded beyond basic JWT signing and validation into a broader JOSE library surface, including JWS serializations, JWE serializations, JWK thumbprints, remote JWKS caching, DPoP, and application-profile helpers.
The documentation tracks the IETF standards that shaped the library, including RFC 7515 through RFC 7519 for JWS, JWE, JWK, JWA, and JWT, plus later standards such as RFC 7638, RFC 8725, RFC 9068, RFC 9278, and RFC 9449.
LibJWT is packaged across many Unix-like systems, including Homebrew, Debian, Ubuntu, Fedora, Alpine, MacPorts, Nix, and openSUSE. That distribution spread reflects a common packaging need: C and C-adjacent services need JWT/JWK primitives without embedding a large web framework.
The project also evolved with the crypto-backend landscape. Its README documents OpenSSL, GnuTLS, and MbedTLS support, plus JSON backends through Jansson or json-c, letting distributors choose dependencies that match platform policy.
Common uses include signing JWTs, verifying tokens against local keys or JWKS keyrings, generating JWKs, handling key rotation through cached remote JWKS, and building tokens for application profiles such as access-token JWTs, DPoP, VAPID, PASSporT, OpenID4VCI, mTLS, and JAdES.
LibJWT is interesting to package maintainers because security-sensitive C libraries have unusually sharp dependency and ABI edges. The package exposes choices among crypto libraries, JSON parsers, and optional libcurl support while staying useful as a small shared library and command-line utility bundle.
security posture
library-like package without higher-risk signals.
green risk · low confidence · appliance
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 |
|---|---|---|---|
jwk2key | cli | global executable | |
jwt-generate | cli | global executable | |
jwt-verify | cli | global executable | |
key2jwk | 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://github.com/benmcollins/libjwt
install metadata
| Package key | brew:libjwt |
|---|---|
| Version | 3.6.1 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/libjwt |
| Homepage | https://libjwt.io/ |
| Repository | https://github.com/benmcollins/libjwt |
| Upstream docs | https://libjwt.io/ |
| License | MPL-2.0 |
| Source archive | https://github.com/benmcollins/libjwt/archive/refs/tags/v3.6.1.tar.gz |
| Last updated | 2026-06-30T04:08:24Z |
| Pulse | updated |
| Dependencies | jansson, openssl@3 |
| Build dependencies | cmake, pkgconf |
| 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 | libjwt |
| 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 |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
libjwt-dev 1.17.2-1
C library to handle JWT (JSON Web Token) - development
https://github.com/benmcollins/libjwt
sudo apt install libjwt-devlibjwt-gnutls-dev 1.17.2-1
Development files for libjwt - GnuTLS flavour
https://github.com/benmcollins/libjwt
sudo apt install libjwt-gnutls-devlibjwt-gnutls2 1.17.2-1
C library to handle JWT (JSON Web Token) - GnuTLS flavour
https://github.com/benmcollins/libjwt
sudo apt install libjwt-gnutls2libjwt2 1.17.2-1
C library to handle JWT (JSON Web Token)
https://github.com/benmcollins/libjwt
sudo apt install libjwt2libjwt
nix profile install nixpkgs#libjwtlibjwt-dev 1.17.0-2build2
C library to handle JWT (JSON Web Token) - development
https://github.com/benmcollins/libjwt
sudo apt install libjwt-devlibjwt-gnutls-dev 1.17.0-2build2
Development files for libjwt - GnuTLS flavour
https://github.com/benmcollins/libjwt
sudo apt install libjwt-gnutls-devlibjwt-gnutls2 1.17.0-2build2
C library to handle JWT (JSON Web Token) - GnuTLS flavour
https://github.com/benmcollins/libjwt
sudo apt install libjwt-gnutls2libjwt2 1.17.0-2build2
C library to handle JWT (JSON Web Token)
https://github.com/benmcollins/libjwt
sudo apt install libjwt2libjwt 3.3.3-r0
The C JSON Web Token Library +JWK +JWKS
https://github.com/benmcollins/libjwt
sudo apk add libjwtlibjwt-dev 3.3.3-r0
The C JSON Web Token Library +JWK +JWKS (development files)
https://github.com/benmcollins/libjwt
sudo apk add libjwt-devlibjwt-doc 3.3.3-r0
The C JSON Web Token Library +JWK +JWKS (documentation)
https://github.com/benmcollins/libjwt
sudo apk add libjwt-doclibjwt-static 3.3.3-r0
The C JSON Web Token Library +JWK +JWKS (static library)
https://github.com/benmcollins/libjwt
sudo apk add libjwt-staticlibjwt-tools 3.3.3-r0
Tools for JWT and JWK(S) from libjwt
https://github.com/benmcollins/libjwt
sudo apk add libjwt-toolslibjwt 1.12.1-21.fc44
A Javascript Web Token library in C
https://github.com/benmcollins/libjwt
sudo dnf install libjwtlibjwt-devel 1.12.1-21.fc44
Development files for libjwt
https://github.com/benmcollins/libjwt
sudo dnf install libjwt-develsource 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.