is there a way to hide lua source code

Posted by Jing Wu on Sun 05 Aug 2012 01:23 PM — 5 posts, 19,284 views.

Australia #0
Hi,

Can I compile xx.lua to a binary lib, and load it into mush?
Is there a way to do this?

Thanks
USA Global Moderator #1
http://www.lua.org/manual/4.0/luac.html

But your premise of "hiding code" is incredibly anti-social.

Knowing what MUSHclient and Lua are capable of, I would never run anything written by you with hidden code. And I would warn other people against doing so.
Amended on Sun 05 Aug 2012 04:01 PM by Fiendish
Australia #2
Thank you for your answer.

Regarding "anti-social" point, I don't mean I'm going to write some harmful code or anything. just seeking a way to protect at least part of my work. This is my original idea.

USA Global Moderator #3
Wjshome said:
I don't mean I'm going to write some harmful code or anything.
Sure, says you.
Australia Forum Administrator #4
You may not be planning to write harmful code, but if obfuscated, how do I, the person running it, know this?

MUSHclient is open-source. All the Lua stuff (including Lua itself) is open-source, or at least, you can view the source. Fiendish's stuff is supplied as Lua source.

You can, of course, do whatever you want. But supplying a plugin (or whatever it is) in a way people can't check what it is doing is much the same as supplying a .exe file and saying "trust me, it's not a virus/trojan or whatever".

You may have a group of friends who trust you, and would be happy to install your code. That's fine. But in that case, maybe you would trust them not to pirate it.