[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  is there a way to hide lua source code

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

is there a way to hide lua source code

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by Jing Wu   Australia  (35 posts)  [Biography] bio
Date Sun 05 Aug 2012 01:23 PM (UTC)  quote  ]
Message
Hi,

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

Thanks

Kernel Development
[Go to top] top

Posted by Fiendish   USA  (848 posts)  [Biography] bio   Global Moderator
Date Reply #1 on Sun 05 Aug 2012 03:58 PM (UTC)  quote  ]

Amended on Sun 05 Aug 2012 04:01 PM (UTC) by Fiendish

Message
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.

http://aardwolfclientpackage.googlecode.com/
[Go to top] top

Posted by Jing Wu   Australia  (35 posts)  [Biography] bio
Date Reply #2 on Mon 06 Aug 2012 03:29 PM (UTC)  quote  ]
Message
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.


Kernel Development
[Go to top] top

Posted by Fiendish   USA  (848 posts)  [Biography] bio   Global Moderator
Date Reply #3 on Tue 07 Aug 2012 12:35 AM (UTC)  quote  ]
Message
Wjshome said:
I don't mean I'm going to write some harmful code or anything.
Sure, says you.

http://aardwolfclientpackage.googlecode.com/
[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Reply #4 on Tue 07 Aug 2012 01:47 AM (UTC)  quote  ]
Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


822 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]