Namespaces
Functions
std::string
encode (const std::string &s)
Encode a string to Base64 with the standard Base64 alphabet.
More...
Try< std::string >
decode (const std::string &s)
Decode a string that is Base64-encoded with the standard Base64 alphabet.
More...
Encode a string to Base64 with a URL and filename safe alphabet.
More...
Decode a string that is Base64-encoded with a URL and filename safe alphabet.
More...
Function Documentation
Try<std::string> base64::decode
(
const std::string &
s )
inline
Decode a string that is Base64-encoded with the standard Base64 alphabet.
- See also
- RFC4648
- Parameters
-
s The string to decode.
Try<std::string> base64::decode_url_safe
(
const std::string &
s )
inline
Decode a string that is Base64-encoded with a URL and filename safe alphabet.
- See also
- RFC4648
- Parameters
-
s The string to decode.
std::string base64::encode
(
const std::string &
s )
inline
Encode a string to Base64 with the standard Base64 alphabet.
- See also
- RFC4648
- Parameters
-
s The string to encode.
std::string base64::encode_url_safe
(
const std::string &
s,
bool
padding = true
)
inline
Encode a string to Base64 with a URL and filename safe alphabet.
- See also
- RFC4648
- Parameters
-
s The string to encode.
padding True if padding characters ('=') should be added.