Protected Code
Moderators: Shine, Insert_witty_name
Protected Code
Any chance in the near future that Lua will provide some kind of way to "compile" the code so that no one else can view it ? Perhaps some kind of password scheme or something even would be nice...
I know that Lua is all about dev'ing for the PSP and being freeware but if someone is to create something in Lua and wish to keep others from stealing any code then it wouldnt be possible
I know that Lua is all about dev'ing for the PSP and being freeware but if someone is to create something in Lua and wish to keep others from stealing any code then it wouldnt be possible
nice idea, but most of those obfuscator's are tricked easily (see javascript, just use your search and replace-tool to rebuild the code)chaos wrote:you could write a lua obfuscator...
one way to "fuck up" the code is renaming the variables to senseless stuff (which some developers already do when they code *lol*) this would make it harder to read/understand your program
afaik is it only possible to build it so you can use your own images and have your lua in the root folder of your app (no compiling from lua2c)ksilvert wrote: I could be wrong, but I thought that the .10 release included a way to compile your lua code into an eboot? I haven't tried this yet....but it may be what you're looking for.
greets Lumo
PS: you could even encode your lua-code and decode(and delete the files afterwards) it at runtime (with an lua-script) but where do you store the password then ;D
-
- Posts: 116
- Joined: Mon Jul 18, 2005 2:20 am
There are many ways to hide the code. You can use the source code from Lua Player and just substitude the boot.lua with your code, which is linked with the EBOOT.PBP file, or you can compile your Lua script with luac or from a Lua script and save it as a Lua chunk and load this later with standard Lua functions and the ultimative code hiding would be to link this Lua chunk instead of the Lua source with your EBOOT.PBP.LuMo wrote:afaik is it only possible to build it so you can use your own images and have your lua in the root folder of your app (no compiling from lua2c)ksilvert wrote: I could be wrong, but I thought that the .10 release included a way to compile your lua code into an eboot? I haven't tried this yet....but it may be what you're looking for.
greets Lumo
PS: you could even encode your lua-code and decode(and delete the files afterwards) it at runtime (with an lua-script) but where do you store the password then ;D
Decoding on-the-fly is possible, too, without saving it first to memory stick, because AFAIK Lua can execute strings as code, but this doesn't help very much, because someone can just patch the decoding function to write it to memory stick :-)
-
- Site Admin
- Posts: 347
- Joined: Sat Jan 17, 2004 9:49 am
- Location: Melbourne, Australia
- Contact:
I haven't compiled the PSP version of LUA yet, however, doesn't LUA come with a compiler? The LuaPlayer would need to be modified to allow loading LuaByte code directly if it is not already supported.
Here's some information on it.
http://www.lua.org/manual/3.2/luac.html
It is still possible to decompile lua code using luadc which you can google for, but it will make your code a reasonable amount more obfuscated.
David. aka Oobles.
Here's some information on it.
http://www.lua.org/manual/3.2/luac.html
It is still possible to decompile lua code using luadc which you can google for, but it will make your code a reasonable amount more obfuscated.
David. aka Oobles.