Jump to content

[Share]Encrypt Lua Scripts -- By HaloShadow (3rdera)


Devangell™

Recommended Posts

If you need help, PM me and I'll help you on Team Viewer.

3rdera - HaloShadow Wrote:

[special Tutorial] Encrypting Lua Scripts

Summary:

 

* This tutorial walks a user through the method of encrypting their scripts.

* The skill level for this tutorial is low, everything is explained step by step.

 

Video Tutorial:

 

WATCH THE VIDEO IN 720p AND FULLSCREEN!

 

Download the file here:

http://3rdera.com/forum/download/file.php?id=32

 

Original post here:

http://3rdera.com/forum/viewtopic.php?f=16&t=737

This is only for CSS Lua, your encrypt.lua could look like this:

local script = string.dump(function()

local function h4x(strtbl)

    buffer=""

    for v in strtbl do

        buffer=buffer..strtbl[v]

    end

    return buffer

end

 

--Paste Lua script below this line

print("Lol")

--End of lua script

 

end)

 

buff=""

for v=1,string.len(script) do --Convert our string into a hex string.

    buff=buff..'\\'..string.byte(script,v)

end

 

file=io.open('encrypted.txt','w') --Output our bytecode into ascii format to encrypted.txt

file:write(buff)

file:flush()

file:close()

This will create this:

Code:

loadstring("\27\76\117\97\80\1\4\4\4\6\8\9\9\8\182\9\147\104\231\245\125\65\13\0\0\0\64\101\110\99\114\121\112\116\46\108\117\97\0\1\0\0\0\0\0\0\3\5\0\0\0\8\0\0\0\11\0\0\0\11\0\0\0\11\0\0\0\14\0\0\0\1\0\0\0\4\0\0\0\104\52\120\0\1\0\0\0\4\0\0\0\0\0\0\0\2\0\0\0\4\6\0\0\0\112\114\105\110\116\0\4\4\0\0\0\76\111\108\0\1\0\0\0\0\0\0\0\2\0\0\0\0\1\0\7\14\0\0\0\3\0\0\0\3\0\0\0\4\0\0\0\4\0\0\0\4\0\0\0\5\0\0\0\5\0\0\0\5\0\0\0\5\0\0\0\4\0\0\0\5\0\0\0\7\0\0\0\7\0\0\0\8\0\0\0\4\0\0\0\7\0\0\0\115\116\114\116\98\108\0\0\0\0\0\13\0\0\0\16\0\0\0\40\102\111\114\32\103\101\110\101\114\97\116\111\114\41\0\5\0\0\0\11\0\0\0\12\0\0\0\40\102\111\114\32\115\116\97\116\101\41\0\5\0\0\0\11\0\0\0\2\0\0\0\118\0\5\0\0\0\11\0\0\0\0\0\0\0\2\0\0\0\4\7\0\0\0\98\117\102\102\101\114\0\4\1\0\0\0\0\0\0\0\0\14\0\0\0\65\0\0\1\7\0\0\1\0\0\0\1\3\128\1\2\222\0\128\1\5\0\0\4\198\0\0\5\83\1\2\4\7\0\0\4\29\0\0\1\84\254\127\0\5\0\0\1\27\0\1\1\27\128\0\0\5\0\0\0\34\0\0\0\5\0\0\1\65\0\0\2\89\0\1\1\27\128\0\0")

credits : Shadow , CrzY-MikE for share it at another forum and me for share it here ;)

Link to comment
Share on other sites

  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...