ss1122
|
  |
| Joined: 16 Dec 2008 |
| Total Posts: 1601 |
|
| |
|
|
| 01 Sep 2011 05:00 AM |
Source=string.dump(function()
Source Here
end)
NewSource = [[loadstring("]]
for i=1, Source:len() do NewSource = NewSource .. \\ .. Source:sub(i, i):byte() end
print(NewSource .. [[")()"]])
That will encrypt your scripts so they can't reveal your secrets, but they can still be used.
[Now son, don't touch that cactus!] |
|
|
| Report Abuse |
|
|
|
| 01 Sep 2011 05:01 AM |
Sorry, messed that up.
Source=string.dump(function()
Source Here
end)
NewSource = [[loadstring("]]
for i=1, Source:len() do NewSource = NewSource .. "\\" .. Source:sub(i, i):byte() end
print(NewSource .. [[")()"]])
[Now son, don't touch that cactus!] |
|
|
| Report Abuse |
|
|
ss1122
|
  |
| Joined: 16 Dec 2008 |
| Total Posts: 1601 |
|
| |
|
ss1122
|
  |
| Joined: 16 Dec 2008 |
| Total Posts: 1601 |
|
| |
|
ss1122
|
  |
| Joined: 16 Dec 2008 |
| Total Posts: 1601 |
|
| |
|
|
| 01 Sep 2011 06:27 AM |
make it crash the game if used in any place besides your own?
if game.CreatorId ~= your id then while true do end end
of course, it would be obfuscated, so people wouldn't know how to remove it. |
|
|
| Report Abuse |
|
|
|
| 01 Sep 2011 06:28 AM |
Anything that can be encrypted must contain the algorithm in the script for it to be decrypted.
Hence, full encryption is pretty much impossible. If someone who knows their way around Lua wants your script, they'll get it.
ithink |
|
|
| Report Abuse |
|
|
ss1122
|
  |
| Joined: 16 Dec 2008 |
| Total Posts: 1601 |
|
| |
|
|
| 01 Sep 2011 07:07 AM |
Sdfgw, it turns it into some form of Assembly.
Very few people here know assembly let alone have the willingness and narbiness to fix somone else's code back into lua. |
|
|
| Report Abuse |
|
|
ss1122
|
  |
| Joined: 16 Dec 2008 |
| Total Posts: 1601 |
|
| |
|
elucidir
|
  |
| Joined: 08 Aug 2011 |
| Total Posts: 243 |
|
|
| 01 Sep 2011 07:13 AM |
It's really not very difficult to convert Lua bytecode back into the original source.
If you save your script in the Camera object, that should prevent people from stealing scripts on the server. |
|
|
| Report Abuse |
|
|
|
| 01 Sep 2011 07:13 AM |
@trapping:
see, I had a feeling I was talking crap
thxbro |
|
|
| Report Abuse |
|
|
ss1122
|
  |
| Joined: 16 Dec 2008 |
| Total Posts: 1601 |
|
| |
|
|
| 01 Sep 2011 07:25 AM |
| Go with what everyone else said. |
|
|
| Report Abuse |
|
|
cymru72
|
  |
| Joined: 26 Jan 2008 |
| Total Posts: 4362 |
|
|
| 01 Sep 2011 07:26 AM |
y u think I stole it using CE? I no stoleded it using CE, poopy :(
There's not really much you could do about it because even if you delete the Local/Script it lingers around. You could encode it, I guess but you could easily decode it too. Especially if that person is a member of the Scripters forum. Common knowledge, brah. |
|
|
| Report Abuse |
|
|
ss1122
|
  |
| Joined: 16 Dec 2008 |
| Total Posts: 1601 |
|
| |
|
cymru72
|
  |
| Joined: 26 Jan 2008 |
| Total Posts: 4362 |
|
|
| 01 Sep 2011 07:31 AM |
| Oh and FYI, putting it in the Camera would have no effect.. |
|
|
| Report Abuse |
|
|
ss1122
|
  |
| Joined: 16 Dec 2008 |
| Total Posts: 1601 |
|
| |
|
|
| 01 Sep 2011 09:01 AM |
'Anything that can be encrypted must contain the algorithm in the script for it to be decrypted.
Hence, full encryption is pretty much impossible. If someone who knows their way around Lua wants your script, they'll get it.
ithink'
not quite impossible, some terrorists used 2 prime numbers and multiplied them together to give the key for decrypter, even super fast government computers can't decrypt it because there can be so many prime factors that the possiblilies would take ages to find the right decrypted message, you would need to know at least 1 of the primes to decrypt. |
|
|
| Report Abuse |
|
|
|
| 01 Sep 2011 09:11 AM |
"not quite impossible, some terrorists used 2 prime numbers and multiplied them together to give the key for decrypter, even super fast government computers can't decrypt it because there can be so many prime factors that the possiblilies would take ages to find the right decrypted message, you would need to know at least 1 of the primes to decrypt."
lolwin
but the problem is that in this case:
program the creator uses: Roblox program the user uses: Roblox program a haxx0r would use: probably something far quicker than Roblox if they wanted to |
|
|
| Report Abuse |
|
|
|
| 01 Sep 2011 09:15 AM |
Bluey the computer isn't a terrorist, we can't just say "Ok the numbers are .. and ... Use those to decrypt the script when it needs to run" We need to somewhere in the script write those two numbers, unencrypted, and plainly readable.
Dumping is the best option. |
|
|
| Report Abuse |
|
|
|
| 01 Sep 2011 09:22 AM |
| trap, you don't have to write the numbers in the script, then to make it harder for a decrypter you times the key by many other primes! |
|
|
| Report Abuse |
|
|
ENET
|
  |
| Joined: 01 Jan 2010 |
| Total Posts: 4820 |
|
|
| 01 Sep 2011 09:23 AM |
| loadstring the source but make the source backwards... |
|
|
| Report Abuse |
|
|
|
| 01 Sep 2011 09:24 AM |
| If you don't put the numbers in the script how on earth is the Lua compiler meant to know how to run the code? |
|
|
| Report Abuse |
|
|