Automic VaultAutomic Vault

brew

Install libjwt with Homebrew, apk, apt, dnf, MacPorts, Nix, zypper

JSON Web Token C library. Version 3.6.1 via Homebrew; verified 2026-06-30.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install libjwt

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install libjwt

MacPorts ports tree · devel/libjwt/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add libjwt

Alpine Linux edge package indexes · libjwt · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install libjwt-dev

Debian stable package indexes · libjwt-dev · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install libjwt

Fedora Rawhide package metadata · libjwt · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#libjwt

nixpkgs package indexes · pkgs/by-name/li/libjwt/package.nix · source: api.github.com

openSUSE zypperverified · 92%
sudo zypper install libjwt-devel

openSUSE Tumbleweed package metadata · libjwt-devel · source: download.opensuse.org

overview

Package summary

JSON Web Token C library

Commands and aliases

  • jwk2key
  • jwt-generate
  • jwt-verify
  • key2jwk

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 2015-05-19: v1.0.0 tag points at the repository-move commit.
  • 2016-11-05: v1.6.1 tag was committed.
  • 2020s: Documentation covers JWS, JWE, JWK, JWKS, DPoP, JWT Best Current Practices, and access-token profiles.
  • 2026: README documents experimental ML-DSA support tied to FIPS 204 and RFC 9964.

Related projects

  • Related standards and projects include JWT.io, the JOSE RFC family, OpenSSL, GnuTLS, MbedTLS, Jansson, json-c, and libcurl.

security posture

Risk level: green

library-like package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • library-like package without higher-risk signals

Signals

  • metadata:library-like

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 2 runtime dependencies.
  • Build metadata lists 2 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
jwk2keycliglobal executable
jwt-generatecliglobal executable
jwt-verifycliglobal executable
key2jwkcliglobal executable

freshness

Version and 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.

page generated2026-07-08
manager version3.6.1
manager updated2026-06-30
local dataok
upstreamcurrent
latest detectedv3.6.1

https://github.com/benmcollins/libjwt

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:libjwt
Version3.6.1
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/libjwt
Homepagehttps://libjwt.io/
Repositoryhttps://github.com/benmcollins/libjwt
Upstream docshttps://libjwt.io/
LicenseMPL-2.0
Source archivehttps://github.com/benmcollins/libjwt/archive/refs/tags/v3.6.1.tar.gz
Last updated2026-06-30T04:08:24Z
Pulseupdated
Dependenciesjansson, openssl@3
Build dependenciescmake, pkgconf
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

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

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

libjwt-dev 1.17.2-1

C library to handle JWT (JSON Web Token) - development

https://github.com/benmcollins/libjwt

sudo apt install libjwt-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: libjwt
  • 1 dependencies
  • normalized package name match
  • Matched by: Libjwt
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libjwt-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libjwt-gnutls-dev 1.17.2-1

Development files for libjwt - GnuTLS flavour

https://github.com/benmcollins/libjwt

sudo apt install libjwt-gnutls-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: libjwt
  • 1 dependencies
  • normalized package name match
  • Matched by: Libjwt
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libjwt-gnutls-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libjwt-gnutls2 1.17.2-1

C library to handle JWT (JSON Web Token) - GnuTLS flavour

https://github.com/benmcollins/libjwt

sudo apt install libjwt-gnutls2
  • Section: libs
  • Architecture: amd64
  • Source Package: libjwt
  • 4 dependencies
  • normalized package name match
  • Matched by: Libjwt
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libjwt-gnutls2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libjwt2 1.17.2-1

C library to handle JWT (JSON Web Token)

https://github.com/benmcollins/libjwt

sudo apt install libjwt2
  • Section: libs
  • Architecture: amd64
  • Source Package: libjwt
  • 4 dependencies
  • normalized package name match
  • Matched by: Libjwt
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libjwt2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

libjwt

nix profile install nixpkgs#libjwt
  • normalized package name match
  • Matched by: Libjwt
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/li/libjwt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

libjwt-dev 1.17.0-2build2

C library to handle JWT (JSON Web Token) - development

https://github.com/benmcollins/libjwt

sudo apt install libjwt-dev
  • Section: universe/libdevel
  • Architecture: amd64
  • Source Package: libjwt
  • 1 dependencies
  • normalized package name match
  • Matched by: Libjwt
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libjwt-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libjwt-gnutls-dev 1.17.0-2build2

Development files for libjwt - GnuTLS flavour

https://github.com/benmcollins/libjwt

sudo apt install libjwt-gnutls-dev
  • Section: universe/libdevel
  • Architecture: amd64
  • Source Package: libjwt
  • 1 dependencies
  • normalized package name match
  • Matched by: Libjwt
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libjwt-gnutls-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libjwt-gnutls2 1.17.0-2build2

C library to handle JWT (JSON Web Token) - GnuTLS flavour

https://github.com/benmcollins/libjwt

sudo apt install libjwt-gnutls2
  • Section: universe/libs
  • Architecture: amd64
  • Source Package: libjwt
  • 4 dependencies
  • normalized package name match
  • Matched by: Libjwt
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libjwt-gnutls2 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libjwt2 1.17.0-2build2

C library to handle JWT (JSON Web Token)

https://github.com/benmcollins/libjwt

sudo apt install libjwt2
  • Section: universe/libs
  • Architecture: amd64
  • Source Package: libjwt
  • 4 dependencies
  • normalized package name match
  • Matched by: Libjwt
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libjwt2 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

libjwt 3.3.3-r0

The C JSON Web Token Library +JWK +JWKS

https://github.com/benmcollins/libjwt

sudo apk add libjwt
  • License: MPL-2.0
  • Architecture: x86_64
  • Source Package: libjwt
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Libjwt
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: libjwt from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

libjwt-dev 3.3.3-r0

The C JSON Web Token Library +JWK +JWKS (development files)

https://github.com/benmcollins/libjwt

sudo apk add libjwt-dev
  • License: MPL-2.0
  • Architecture: x86_64
  • Source Package: libjwt
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Libjwt
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: libjwt-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

libjwt-doc 3.3.3-r0

The C JSON Web Token Library +JWK +JWKS (documentation)

https://github.com/benmcollins/libjwt

sudo apk add libjwt-doc
  • License: MPL-2.0
  • Architecture: x86_64
  • Source Package: libjwt
  • normalized package name match
  • Matched by: Libjwt
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: libjwt-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

libjwt-static 3.3.3-r0

The C JSON Web Token Library +JWK +JWKS (static library)

https://github.com/benmcollins/libjwt

sudo apk add libjwt-static
  • License: MPL-2.0
  • Architecture: x86_64
  • Source Package: libjwt
  • 1 dependencies
  • normalized package name match
  • Matched by: Libjwt
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: libjwt-static from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

libjwt-tools 3.3.3-r0

Tools for JWT and JWK(S) from libjwt

https://github.com/benmcollins/libjwt

sudo apk add libjwt-tools
  • License: MPL-2.0
  • Architecture: x86_64
  • Source Package: libjwt
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Libjwt
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: libjwt-tools from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

libjwt 1.12.1-21.fc44

A Javascript Web Token library in C

https://github.com/benmcollins/libjwt

sudo dnf install libjwt
  • License: MPL-2.0
  • Category: Unspecified
  • Architecture: i686
  • Source Package: libjwt
  • 5 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Libjwt
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: libjwt from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

libjwt-devel 1.12.1-21.fc44

Development files for libjwt

https://github.com/benmcollins/libjwt

sudo dnf install libjwt-devel
  • License: MPL-2.0
  • Category: Unspecified
  • Architecture: i686
  • Source Package: libjwt
  • 3 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Libjwt
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: libjwt-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • 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