Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2005
    Posts
    130

    Run Encrypted External Lua file

    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.

  2. #2
    Join Date
    May 2006
    Posts
    5,380
    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:
    Code:
    strFile = TextFile.ReadToString("C:\\MyFile.txt");
    strText = Crypto.BlowfishDecryptString(strFile, "testpass");
    Page.SetObjectScript("Button1", "On Click", strText);
    only draw back is this will only work for page objects
    Last edited by RizlaUK; 01-25-2008 at 05:56 AM.
    Open your eyes to Narcissism, Don't let her destroy your life!!

  3. #3
    Join Date
    Mar 2005
    Posts
    130
    only draw back is this will only work for page objects
    yes true

    We really need more security for scripts because its too weak now.

  4. #4
    Join Date
    May 2006
    Posts
    5,380
    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!!

  5. #5
    Join Date
    Jul 2001
    Location
    Indigo Rose Software
    Posts
    1,834
    Thanks for the suggestion. I've submitted it for consideration.

    REF: 17185
    Darryl
    Indigo Rose Corporation

    Product Guides: AMS80 | SUF9 | TU30 | VP30 |MSIFACT |DeltaMAX

  6. #6
    Join Date
    Apr 2007
    Location
    Mar Sara
    Posts
    292
    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.

  7. #7
    Join Date
    May 2006
    Posts
    5,380
    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 file
    Open your eyes to Narcissism, Don't let her destroy your life!!

Similar Threads

  1. How to use a web exe with an external txt data file
    By DaSoulRed in forum AutoPlay Media Studio 7.5
    Replies: 0
    Last Post: 12-06-2007, 10:53 AM
  2. Failure when patching single file
    By jlsf2 in forum Visual Patch 3.5 Discussion
    Replies: 7
    Last Post: 10-01-2007, 12:15 PM
  3. External file path problem
    By lledden in forum AutoPlay Media Studio 6.0
    Replies: 2
    Last Post: 09-27-2006, 10:44 AM
  4. Problem with external file
    By eric_darling in forum Setup Factory 6.0
    Replies: 11
    Last Post: 09-24-2004, 11:03 AM
  5. Auto Run & File Servers
    By John McCoy in forum AutoPlay Menu Studio 3.0
    Replies: 14
    Last Post: 03-29-2002, 08:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts