Utils.encodeBase64
This function converts a string to a Base64 encoded string.
Syntax
utils.encodeBase64(<input string>)
Arguments
Argument |
Type |
Description |
---|---|---|
string |
string |
String to be converted to a Base64 encoded version. |
Returns
Type |
Description |
---|---|
string |
A Base64 encoded version of the input string. |
Examples
The function utils.encodeBase64(coerce.ToBytes("Hello, World"))
returns SGVsbG8sIFdvcmxk
.