Template Struct base64_enc_dec

Struct Documentation

template<typename Derived>
struct base64_enc_dec

Provides the functionality for doing base64 encoding and decoding from the json string.

Note

: The JWT component classes inherits from this class to get the base64 related encoding and decoding functionalities.

Public Functions

inline std::string base64_encode(bool with_pretty = false) const

Does URL safe base64 encoding

inline std::string base64_decode(const jwt::string_view encoded_str)

Does URL safe base64 decoding.