I grabbed one of my apks and tried to decompile it and extract the lua files to see what a potential threat would it make if someone decompiled my scripts.
After I successfully decompiled my lua files I found my lua codes as they are with no obfuscation and even variable names are the same as I declared them.
I was curious how big app’s built with corona would deal with this issue so I grabbed one app’s apk and when I decompiled their lua’s files the exact same way I did to mine, the file was unreadable with a lot of errors.
I want to know how was the other app able to achieve this so I can do the same for my app.
Here is a sample of the lua code extracted from the other app
L4\_15 = \_UPVALUE0\_ L4\_15 = L4\_15.encode L5\_16 = L3\_14 L4\_15 = L4\_15(L5\_16) L5\_16 = system L5\_16 = L5\_16.pathForFile L6\_17 = A0\_11 L5\_16 = L5\_16(L6\_17, A1\_12) L6\_17 = io L6\_17 = L6\_17.open L6\_17 = L6\_17(L5\_16, "w+") if L6\_17 then L6\_17:write(L4\_15) io.close(L6\_17) L6\_17 = nil end else L4\_15 = \_UPVALUE1\_ L5\_16 = L4\_15 L4\_15 = L4\_15.error
Thanks in advance.