59 static std::string
Encode(
const std::string & s);
65 static std::string
Decode(
const std::string & s);
71 static std::ostream &
Encode(std::istream & is, std::ostream & os);
79 static std::ostream &
Decode(std::istream & is, std::ostream & os);
92 static std::string
Encode(
const std::string & s);
98 static std::string
Decode(
const std::string & s);
104 static std::ostream &
Encode(std::istream & is, std::ostream & os);
112 static std::ostream &
Decode(std::istream & is, std::ostream & os);
RFC 4648 base64 enconding and decoding functions for URLs.
Definition DwmBase64.hh:87
static std::ostream & Encode(std::istream &is, std::ostream &os)
Base64url encodes the contents of istream is into the ostream @ c os.
static std::ostream & Decode(std::istream &is, std::ostream &os)
Decodes the base64url encoded contents of istream is into the ostream os.
static std::string Encode(const std::string &s)
Returns a base64url encoded version of s.
static std::string Decode(const std::string &s)
Returns a decoded string for the base64url-encoded string s on success, an empty string on failure.
RFC 4648 base64 encoding and decoding functions.
Definition DwmBase64.hh:54
static std::ostream & Decode(std::istream &is, std::ostream &os)
Decodes the base64 encoded contents of istream is into the ostream os.
static std::ostream & Encode(std::istream &is, std::ostream &os)
Base64 encodes the contents of istream is into the ostream @ c os.
static std::string Decode(const std::string &s)
Returns a decoded string for the base64-encoded string s on success, an empty string on failure.
static std::string Encode(const std::string &s)
Returns a base64 encoded version of s.