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:

HMSCRSAECDSAPSSEdDSA
HS256RS256ES256PS256Ed25519
HS384RS384ES384PS384Ed448
HS512RS512ES512PS512
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_claimGenerics 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:

picojson Enlohmann jsoncons boostjson

To maintain compatibility,picojsonis still used to provide a dedicatedjwt::claimalong with all helpers.definitionJWT_DISABLE_PICOJSONThis 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.hAll 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_BASE64Disable jwt-cpp implementation.

#jwtcpp #Homepage #Documentation #Downloads #JSON #Web #Token #Library #News Fast Delivery

Leave a Comment

Your email address will not be published. Required fields are marked *