the ability to run an encrypted external lua file
considering AMS can already encrypt and decrypt this shoul not be a big of a problem.
Professional Software Development Tools
the ability to run an encrypted external lua file
considering AMS can already encrypt and decrypt this shoul not be a big of a problem.
AMS already can run encrypted scripts (with a little imagination)
first you need to encrypt your scripts, then use the below code to run them
in page onshow you set each script to a object like this:
only draw back is this will only work for page objectsCode:strFile = TextFile.ReadToString("C:\\MyFile.txt"); strText = Crypto.BlowfishDecryptString(strFile, "testpass"); Page.SetObjectScript("Button1", "On Click", strText);
Last edited by RizlaUK; 01-25-2008 at 05:56 AM.
Open your eyes to Narcissism, Don't let her destroy your life!!
yes trueonly draw back is this will only work for page objects
We really need more security for scripts because its too weak now.
Yeah, it would be nice to have
either
Application.RunEncryptedScriptFile (string Filename, string Password)
or
Application.RunScriptFromMemory(var strDrycryptedScript)
you can decrypt a script to temp folder run it and delete it straight away, but with something like the above would be a better option
Open your eyes to Narcissism, Don't let her destroy your life!!
I prefer to compile the file to bytecode using luac and loading it. Just keep a copy of it in plain code because if you lose it there's no easy way to get the script back from bytecode.
Wrong, lua bytecode is not 100% secure, with certain tools you can easily decompile a bytecode fileif you lose it there's no easy way to get the script back from bytecode.
Open your eyes to Narcissism, Don't let her destroy your life!!