Libjwt
The C JSON Web Token Library +JWK +JWKS
Install / Use
/learn @benmcollins/LibjwtREADME
[!WARNING] Version 3 of LibJWT is a complete overhaul of the code. Please see documentation for usage.
:bulb: Supported Standards
Standard | RFC | Description
-------- | :------------------------------------------------------------------------: | ----------------------
JWS | :page_facing_up: RFC-7515 | JSON Web Signature
JWE | :page_facing_up: RFC-7516 | JSON Web Encryption
JWK | :page_facing_up: RFC-7517 | JSON Web Keys and Sets
JWA | :page_facing_up: RFC-7518 | JSON Web Algorithms
JWT | :page_facing_up: 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.
:construction: 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 | :white_check_mark: | :white_check_mark: | :white_check_mark:
ES256 ES384 ES512 | :white_check_mark: | :white_check_mark: | :white_check_mark:
RS256 RS384 RS512 | :white_check_mark: | :white_check_mark: | :white_check_mark:
EdDSA using ED25519 | :white_check_mark: | :white_check_mark: | :x:
EdDSA using ED448 | :white_check_mark: | :white_check_mark: >= 3.8.8 | :x:
PS256 PS384 PS512 | :white_check_mark: | :white_check_mark: | :white_check_mark:*
ES256K | :white_check_mark: | :x: | :white_check_mark:
* RSASSA-PSS support in MbedTLS depends on Mbed-TLS/TF-PSA-Crypto#154
Optional
- Check Library (>= 0.9.10) for unit testing
- Doxygen (>= 1.13.0) for documentation
:books: Docs and Source
:link: Current Docs
:link: Legacy Docs v2.1.1
:link: GitHub Repo
:package: Pre-built Packages
LibJWT is available in most Linux distributions as well as through Homebrew for Linux, macOS, and Windows.
:hammer: Build Instructions
With CMake:
$ mkdir build
$ cd build
$ cmake ..
$ make
Related Skills
node-connect
343.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
90.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。

