Skip to content

crypt.base64encode

crypt.base64encode encodes a string with Base64 encoding.

function crypt.base64encode(data: string): string

Parameters

Parameter Description
data The string to encode.

Example

print(crypt.base64encode("DummyString\0\2")) -- Output: RHVtbXlTdHJpbmcAAg==