Indigo Rose Software
  #1  
Old 01-24-2008
goukilord10 goukilord10 is offline
Forum Member
 
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.
Reply With Quote
  #2  
Old 01-25-2008
RizlaUK's Avatar
RizlaUK RizlaUK is offline
Forum Member
 
Join Date: May 2006
Location: London UK
Posts: 3,129
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 06:56 AM.
Reply With Quote
  #3  
Old 01-26-2008
goukilord10 goukilord10 is offline
Forum Member
 
Join Date: Mar 2005
Posts: 130
Quote:
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.
Reply With Quote
  #4  
Old 01-26-2008
RizlaUK's Avatar
RizlaUK RizlaUK is offline
Forum Member
 
Join Date: May 2006
Location: London UK
Posts: 3,129
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
Reply With Quote
  #5  
Old 01-30-2008
Darryl's Avatar
Darryl Darryl is offline
Indigo Rose Staff Member
 
Join Date: Jul 2001
Location: Indigo Rose Software
Posts: 1,602
Thanks for the suggestion. I've submitted it for consideration.

REF: 17185
__________________
Darryl
Indigo Rose Corporation

Product Guides: AMS70 | SUF80 | TU30 | VP30 |MSIFACT |DeltaMAX
Reply With Quote
  #6  
Old 01-30-2008
Desolator's Avatar
Desolator Desolator is offline
Forum Member
 
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.
Reply With Quote
  #7  
Old 02-02-2008
RizlaUK's Avatar
RizlaUK RizlaUK is offline
Forum Member
 
Join Date: May 2006
Location: London UK
Posts: 3,129
Quote:
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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


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


All times are GMT -6. The time now is 09:35 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software