EncodeBase64

EncodeBase64 overloads

Synopses

Declared in <util/strencodings.h>

Base64 encode the given string.

std::string
EncodeBase64(std::string_view str);
» more...

Base64 encode the given bytes.

std::string
EncodeBase64(std::span<std::byte const> input);
» more...

Base64 encode the given bytes.

std::string
EncodeBase64(std::span<unsigned char const> input);
» more...

Return Value

  • The base64 encoding of str.
  • The base64 encoding of input.

Parameters

NameDescription
strThe text to encode.
inputThe bytes to encode.