Encoding and Decoding Base64
hash.EncodeBase64 / hash.DecodeBase64
The following is an example of encoding and decoding a base64 string.
-- Example of encoding and decoding a base64 string
local text = "Lua is useful"
ui.Log("Original Value: " .. text)
local base64 = hash.EncodeBase64(text)
ui.Log("Encoded Base64: " .. base64)
local value = hash.DecodeBase64(base64)
ui.Log("Decoded Base64: " .. value)