函数:base64_decode BASE64 解码
函数名称:BASE64 解码
函数功能:字符串 BASE64 解码(模式为 ECB)
函数用例
local ts = require("ts")
local msg = "\5\4\3\2\1\0"
local key = "触动精灵"
local emsg = msg:aes128_encrypt(key)
local emsgb64 = emsg:base64_encode()
local tmp = emsgb64:base64_decode()
msg = tmp:aes128_decrypt(key)
dialog('"'..emsgb64..'" base64 解码后的数据为 '..tmp:tohex()..'"',0)