encode
Encode the provided string into a Base64-encoded byte array, which includes padding if necessary.
Return
Base64-encoded bytes.
Parameters
string
String to encode with Base64.
Encode the provided data into a Base64-encoded set of bytes, which includes padding if necessary.
Return
Base64-encoded bytes.
Parameters
data
Raw bytes to encode with Base64.
Encode the provided string into a Base64-encoded string, which includes padding if necessary.
Return
Base64-encoded string.
Parameters
string
String to encode with Base64.
Encode the provided data into a Base64-encoded set of bytes, which includes padding if necessary.
Return
Base64-encoded bytes.
Parameters
data
Raw bytes to encode with Base64.