Skip to content

base64encode

base64encode encodes a string with Base64 encoding.

function base64encode(data: string): string

Parameters

Parameter Description
data The string to encode.

Example

Encoding a string with Base64
print(base64encode("DummyString\0\2")) -- Output: RHVtbXlTdHJpbmcAAg==