Skip to content

ToBase64

Converts the given string to a Base64 encoded string.

1
$Crypto.ToBase64(input: string):string

Parameters

string input
    The string to be converted.

Returns

The Base64 encoded string.

Remarks

Convert a string to Base64:

1
var base64String = $Crypto.ToBase64('Hello World');