Exactly,this is my question.I suggest to provide an alternative cocos compile command to compile the scripts with lua and then encrypt. And run the lua code use lua instead of luajit for both 32 and 64 if the developer need protect the codes more than the the performance boosted by luajit.

I think we could optimize cocos luacompile.Now we already support xxtea encrypt,but this mechanism only takes effect after the files compiled by the luajit.I have modified the related luacompile files manually to let xxtea encryp can used to the original lua files,and verified on 32bit and 64bit iOS simulator,the result is ok.How do you think this solution?