MySQL 9.3.0
Source Code Documentation
utils_encoding.h File Reference
#include <string>
#include <string_view>

Go to the source code of this file.

Namespaces

namespace  shcore
 

Functions

bool shcore::decode_base64 (std::string_view source, std::string *target)
 Decodes a base64 encoded string. More...
 
bool shcore::encode_base64 (std::string_view source, std::string *encoded)
 
bool shcore::encode_base64 (const unsigned char *source, std::size_t source_length, std::string *encoded)
 
bool shcore::decode_base64url (std::string_view source, std::string *target)
 
bool shcore::encode_base64url (std::string_view source, std::string *encoded)
 
bool shcore::encode_base64url (const unsigned char *source, std::size_t source_length, std::string *encoded)
 Replaces '+' with '-' and '/' with '_', trims any '=' (RFC 7515, Section 2 and RFC 4648, Section 5). More...