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.