How to encrypt lua files, like this?
local = _G local = ['\115\116\114\105\110\103'] local = ['\98\105\116']['\98\120\111\114'] local function ( ) if ['\108\101\110']( ) == 0 then return end local = '' for _ in ['\103\109\97\116\99\104']( ,'\46\46') do = .. ['\99\104\97\114']( ( ["\116\111\110\117\109\98\101\114"](_,16),166)) end return end if [ 'e5eaefe3e8f2']then [ 'e8ebc7d2c9d4']=function ()local nil = [ 'c9d5'][ 'd2cfcbc3']()/ [ 'f5dfd5f2cfcbc3']()* [ 'cbc7d2ce'][ 'd4c7c8c2c9cb'](0, [ 'f4c3c7caf2cfcbc3']())nil = [ 'c9d5'][ 'c5cac9c5cd']()- [ 'cbc7d2ce'][ 'd4c7c8c2c9cb'](0,17)+nil / [ 'e5d3d4f2cfcbc3']()* [ 'c9d5'][ 'd2cfcbc3']()local else = [ 'cbc7d2ce'][ 'd4c7c8c2c9cb'](25, [ 'cbc7d2ce'][ 'c5c3cfca']( [ 'c5c9cacac3c5d2c1c7d4c4c7c1c3']( 'c5c9d3c8d2')))local break =nil nil = [ 'd2c9d5d2d4cfc8c1'](nil )for in=1,else do local while = [ 'cbc7d2ce'][ 'd4c7c8c2c9cb']( in,break )nil = [ 'd5d2d4cfc8c1'][ 'c1d5d3c4'](nil , [ 'd2c9d5d2d4cfc8c1']( [ 'cbc7d2ce'][ 'd4c7c8c2c9cb'](0,9)), [ 'd5d2d4cfc8c1'][ 'c5cec7d4']( [ 'cbc7d2ce'][ 'd4c7c8c2c9cb'](32,126)), [ 'cbc7d2ce'][ 'd4c7c8c2c9cb'](3,232))end return nil end end
This is something someone else asked a while before.
You can`t
I mean, you probably can, but its not usefull for garrys mod
Can't you just take the names of the variables you have, shove them into any encryption website and then replace them with the results from that, then store the encryption key somewhere?
And even then, what does it matter if you encrypt every single pair of quotation marks in your file? You still have to match the names one-by-one for everything to work, don't you? And because of that, it's not hard to draw a line between how each piece of code interacts with the other.
Despite not knowing what the variable is called, any plagiarizer would still be able to just re-replace the encryption with distinguishable names again, wouldn't they?
First: this is not a encryption, it is obfuscation
and then you can "decryot" it very fast
sample:
local = ['\115\116\114\105\110\103']
you see local = ... but if you put it in a tool that shows you hidden chars then there are something like this:
local \A\A = \A[...] (i just use a \A to show how it works) so for you it is magic but for lua is there just a variable
and then if you want to know what ['\115\116\114\105\110\103']
is then you just need to print("\115\116\114\105\110\103") and then you have the real string of it (because i cant do it right now let me use "RunString"
so now we know:
local \A\A = \A["RunString"]
as you see: this is not a encryption (without a DLL you cant even encrypt anything in lua) and because it is lua you can simple make it useable for you
it doesnt matter how hard you obfuscate your stuff there will be a simple way to get the source without any key (you just make it harder to understand)
or: a simple No, you cant encrypt your source without a DLL wich supports it on the server (and there is no as i know) there will be a way to revert it back
Why is it that you want to do this? I can't really think of a good reason off the top of my head, but it might help you get advice for alternate solutions if we understand your goal.
Wouldn't be surprised if they were attempting to make a backdoor
Sorry, you need to Log In to post a reply to this thread.