Thanks to visit codestin.com
Credit goes to github.com

Skip to content

benmcollins/libjwt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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