AutoHotkey Community

It is currently May 27th, 2012, 1:28 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: March 22nd, 2009, 8:36 pm 
Just wondering, but is there a reason why i can't encrypt them with an external program? I tried an autoit 3 script and they run perfectly when the exe is encrypted post-compile. There must be End-Of-File data with AHK? I get "exe corrupted" when opening after encrypting.
Or am i missing something? I turned UPX and compression off with both tests.

I just want to provide ample protection to my Autohotkey program.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 24th, 2009, 1:43 am 
What are you using to encrypt them? I can't find anything resonably priced that doesn't set off every anti-virus known to man.


Report this post
Top
  
Reply with quote  
PostPosted: March 24th, 2009, 3:51 am 
Offline

Joined: May 3rd, 2007, 5:59 am
Posts: 24
Clyde wrote:
I just want to provide ample protection to my Autohotkey program.


I can't answer your original question, I'm sorry, but I would suggest that it's probably a moot consideration in any case.

Because of the process a "compiled" AutoHotkey (and presumably also AutoIt) script follows when executed, the source of the script must be made available unencrypted in memory as part of the operation. At that point the source code is easily accessible.

Encrypting the .exe file with any form of security or copy protection wrapper will really only provide protection to the AutoHotkey loader itself, not the script source.

I've never needed to obtain the source from an AutoIt script that's been "compiled", but I would think it's no harder than for AutoHotkey with or without an outer encryption layer, and with or without password protection during the compile process. Others may have specific (or at least more) knowledge in that area though.

AutoHotkey is a fantastic product, but in its current form it's not really the development platform you should be looking at if source security is your main (or a major) concern.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 24th, 2009, 1:04 pm 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7503
Location: Australia
In a compiled AutoHotkey script, the script part is already compressed and encrypted. I think the library used to decompress and decrypt it at run-time reads from the file itself, so modifying (i.e. further compressing or encrypting) the file will prevent it from working. Either way, I believe it has a checksum which inhibits modification (triggers the "Exe corrupted" message).
LBJ wrote:
it's probably a moot consideration in any case.
I second that. See also Someone decompiled my passworded and protected script.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group