jwt-cpp isfor creating and validating in C++11 JSON Web Token The header only library.
signature algorithm
jwt-cpp supports all algorithms defined in the standard. The modular design allows for easy addition of other algorithms without any issues.
For completeness, here is a list of all supported algorithms:
HMSC | RSA | ECDSA | PSS | EdDSA |
---|---|---|---|---|
HS256 | RS256 | ES256 | PS256 | Ed25519 |
HS384 | RS384 | ES384 | PS384 | Ed448 |
HS512 | RS512 | ES512 | PS512 | |
ES256K |
SSL Compatibility
Due to good flexibility and scalability, jwt-cpp supportsOpenSSL,LibreSSLandwolfSSL.readthis pageLearn more. These are the versions currently being tested:
ℹ️Note: Can be found inhereFind a full list of past tested builds.
overview
There is no hard dependency on the JSON library.Instead, there is ajwt::basic_claim
Generics templated around type traits that describe the semantics of values, objects, arrays, strings, numbers, integers, and booleansJSON typeand methods to convert between them.
jwt::basic_claim<my_favorite_json_library_traits> claim(json::object({{"json", true},{"example", 0}}));
This allows complete freedom in choosing which library to use. For more information,please read this page.
For your convenience, serval traits implementations are provided with some popular JSON libraries. they are:
To maintain compatibility,picojsonis still used to provide a dedicatedjwt::claim
along with all helpers.definitionJWT_DISABLE_PICOJSON
This optional dependency will be removed. Feature defaults from other JSON libraries can be included directly.For more information, seefeature example.
As for base64 requirements for JWTs, this library providesbase.h
All required implementations are provided; however, base64 implementations are very common and have varying degrees of performance.When providing your own base64 implementation, you can defineJWT_DISABLE_BASE64
Disable jwt-cpp implementation.
#jwtcpp #Homepage #Documentation #Downloads #JSON #Web #Token #Library #News Fast Delivery