According to current luaffi
implementation, you have to cast it to void* or char* with
length specified if the data doesnot end with '\0' . Use
ffi.string(ffi.cast("void*",ms),ffi.sizeof(ms)) to do.
Moreover, you can decrypt the message by base64 in lua-I。