14 std::string
base64Encode(std::vector<unsigned char>
const& data);
30 std::string
base64Decode(std::string
const& base64String);
49 std::string
base64UrlEncode(std::vector<unsigned char>
const& data,
bool includePadding =
false);
56 std::vector<unsigned char>
base64UrlDecode(std::string_view
const& base64String);
Definition authorization.hpp:10
std::vector< unsigned char > base64UrlDecode(std::string_view const &base64String)
Reverses the base64url encoding.
Definition base64.cpp:181
std::string base64UrlEncode(std::vector< unsigned char > const &data, bool includePadding=false)
encodes data using base64url algorithm, which is similar to base64, but uses - and _ instead of + and...
Definition base64.cpp:158
std::string base64Encode(std::vector< unsigned char > const &data)
Encode vector in base64.
Definition base64.cpp:129
std::string base64Decode(std::string const &base64String)
Decode base64 to string.
Definition base64.cpp:144