The C JSON Web Token Library +JWK +JWKS
Find a file
Ben Collins 67cb474de0
key2jwt: Fix unchecked buffer length
Signed-off-by: Ben Collins <bcollins@libjwt.io>
2025-02-12 12:49:00 -05:00
.github/workflows Rework doc building 2025-02-10 08:45:26 -05:00
cmake v3.0.0 2025-02-11 07:32:41 -05:00
doxygen Update docs descriptions 2025-02-11 13:52:32 -05:00
images build: Rework some things for autoconf and cmake builds 2024-12-23 09:24:23 -05:00
include Lots of docs updated...about ready for a v3.0.0 release 2025-02-11 06:55:26 -05:00
libjwt CLeanup jwt-common exports 2025-02-12 11:06:34 -05:00
tests jwt-cli.bats: 2 more tests with claims 2025-02-11 18:52:24 -05:00
tools key2jwt: Fix unchecked buffer length 2025-02-12 12:49:00 -05:00
.gitignore Reorg documents so latest devel if root and stable is in a subfolder 2025-01-09 08:04:53 -05:00
CMakeLists.txt CLeanup jwt-common exports 2025-02-12 11:06:34 -05:00
LICENSE Update LICENSE 2023-09-26 10:37:20 -04:00
README.md Update docs descriptions 2025-02-11 13:52:32 -05:00

LibJWT - The C JWT Library

codecov

maClara

Warning

Version 3 of LibJWT is a complete overhaul of the code. Please see documentation for usage.

💡 Supported Standards

Standard RFC Description
JWS 📄 RFC-7515 JSON Web Signature
JWE 📄 RFC-7516 JSON Web Encryption
JWK 📄 RFC-7517 JSON Web Keys and Sets
JWA 📄 RFC-7518 JSON Web Algorithms
JWT 📄 RFC-7519 JSON Web Token

Note

Throughout this documentation you will see links such as the ones above to RFC documents. These are relevant to that particular part of the library and are helpful to understand some of the specific standards that shaped the development of LibJWT.

🚧 Build Prerequisites

Required

Crypto support

  • OpenSSL (>= 3.0.0)
  • GnuTLS (>= 3.6.0)
  • MbedTLS (>= 3.6.0)

Note

OpenSSL is required and used for JWK(S) operations.

Algorithm support matrix

JWS Algorithm alg OpenSSL GnuTLS MbedTLS
HS256 HS384 HS512
ES256 ES384 ES512
RS256 RS384 RS512
EdDSA using ED25519
EdDSA using ED448 >= 3.8.8
PS256 PS384 PS512 *
ES256K

* RSASSA-PSS support in MbedTLS depends on Mbed-TLS/TF-PSA-Crypto#154

Optional

📚 Docs and Source

🔗 Current Docs

🔗 Legacy Docs v2.1.1

🔗 GitHub Repo

📦 Pre-built Packages

LibJWT is available in most Linux distributions as well as through Homebrew for Linux, macOS, and Windows.

🔨 Build Instructions

With CMake:

$ mkdir build
$ cd build
$ cmake ..
$ make