crypt.base64encode
Encodes a string of bytes into Base64.
function crypt.base64encode(datadatastringThe raw bytes to encode.: string): stringstringBase64-encoded string.Usage
Encode / decode round-trip
local b64 = crypt.base64encode("Hello, World!")
print(b64) --> SGVsbG8sIFdvcmxkIQ==
print(crypt.base64decode(b64)) --> Hello, World!