AHK Encrypt/Obfuscate Script
AHK Encrypt/Obfuscate Script
I want to obfuscate a script I made so even if I give someone the source they can not steal it. Does anyone know how to do this? Some of the things I have found confused me. Thanks i need to obfuscate it.
Re: AHK Encrypt/Obfuscate Script
plz help
Re: AHK Encrypt/Obfuscate Script
Basically, there is no particularly good way to do this. You can use MPress to deter casual users, but it's easily broken if you know what you're doing.
I think AHK_H (a modified version of AHK) includes better protection, but in order to change the default encryption password ("autohotkey") you (for some reason) need to recompile AHK_H from source (not trivial if you've never used Visual Studio before). Without changing the password, there's likely no point as it could probably be easily decrypted.
I think AHK_H (a modified version of AHK) includes better protection, but in order to change the default encryption password ("autohotkey") you (for some reason) need to recompile AHK_H from source (not trivial if you've never used Visual Studio before). Without changing the password, there's likely no point as it could probably be easily decrypted.
Re: AHK Encrypt/Obfuscate Script
could u link mpress please? thanks this is just for casualSifJar wrote:Basically, there is no particularly good way to do this. You can use MPress to deter casual users, but it's easily broken if you know what you're doing.
I think AHK_H (a modified version of AHK) includes better protection, but in order to change the default encryption password ("autohotkey") you (for some reason) need to recompile AHK_H from source (not trivial if you've never used Visual Studio before). Without changing the password, there's likely no point as it could probably be easily decrypted.
- JoeWinograd
- Posts: 2200
- Joined: 10 Feb 2014, 20:00
- Location: U.S. Central Time Zone
Re: AHK Encrypt/Obfuscate Script
I'm confused. If you give someone the source, they don't have to steal it — you gave it to them!even if I give someone the source they can not steal it
Anyway, I presume that what you mean is to obfuscate the source code in such a way that even if someone has it, they can't really do much with it, such as use it as the basis for a new, "stolen" product, derived from your source.
Or do you not really mean source? Do you mean the EXE file created from the source? While I was writing this, I saw the last few posts. Keep in mind that MPRESS does not obfuscate your source code file. It operates on the EXE file that is created by the "compiler" (the script-to-EXE converter), which makes the source code not immediately viewable if you open the EXE in a text editor. But as SifJar correctly stated, this is easy to decrypt, with decrypters widely available on the web. That said, you may find MPRESS here:
https://autohotkey.com/mpress/mpress_web.htm
When you "compile" the script with Ahk2Exe, tick the box that says "Use MPRESS (if present) to compress resulting exe". But at the end of the day, the current AHK implementation is an interpretive language. The "compiler" is not really a compiler in the traditional sense of creating true object code that cannot be decompiled. Rather, it bundles the AHK executable with your source code.
If you do actually want a source code obfuscator, you can achieve that to a certain degree by following some coding conventions and writing your own obfuscator. It won't be perfect, but it will stop most folks from doing anything with your source. Here's an example of what your obfuscated source code could look like:
Code: Select all
Gosub,lOOOOOOOlOlll
Gosub,lOOOOOllllOOl
IfNotExist,%lOOOOOlOlOlOO%
{
Gosub,lOOOOlOOOlOll
Gosub,lOOOOOOllOOlO
}
lOOOOOlOOllll:=lOOOOOlOlOlOO . "*.*"
Loop,%lOOOOOlOOllll%
{
lOOOOOOllllll:=A_LoopFileFullPath
SplitPath,lOOOOOOllllll,lOOOOOOlOOOlO,lOOOOOlOOlOOl,lOOOOOlOOlOlO,lOOOOOOOlOOOl,lOOOOOOllOOll
lOOOOOlOOlOlO:=A_LoopFileExt
lOOOOOlOlOOll:=False
If (lOOOOOlOOlOlO="tif" or lOOOOOlOOlOlO="tiff")
{
lOOOOOlOlOOll:=True
lOOOOlOlllOlO:=lOOOOlOlllOlO+1
Gosub,lOOOOOlOllOOl
}
If (lOOOOOlOOlOlO<>"pdf")
{
lOOOOlOOOOlll:=lOOOOlOOOOlll+1
Continue
}
lOOOOOOlOlOlO:=lOOOOOOllllll
lOOOOOOOllOll:=lOOOOOOOllOll+1
lOOOOlOOlOllO:=lOOOOlOOlOllO+1
Gosub,lOOOOlOlllOOl
}
Re: AHK Encrypt/Obfuscate Script
this is what you want, although it will require massive modifications:
https://autohotkey.com/board/topic/8935 ... y-scripts/
https://autohotkey.com/board/topic/8935 ... y-scripts/
- JoeWinograd
- Posts: 2200
- Joined: 10 Feb 2014, 20:00
- Location: U.S. Central Time Zone
Re: AHK Encrypt/Obfuscate Script
guest3456,
Interesting link! One comment in there ("names could randomly start with either the letter l or the letter O and then all the rest of the obfuscated object name would be constructed of random ones and zeros") is something along the lines of mine, but I decided to go with all letters — lower case "L" and upper case "O" — no zeroes or ones, although they are derived from them using infogulch's excellent Bin(x) function. Regards, Joe
Interesting link! One comment in there ("names could randomly start with either the letter l or the letter O and then all the rest of the obfuscated object name would be constructed of random ones and zeros") is something along the lines of mine, but I decided to go with all letters — lower case "L" and upper case "O" — no zeroes or ones, although they are derived from them using infogulch's excellent Bin(x) function. Regards, Joe
Re: AHK Encrypt/Obfuscate Script
Hi, it is old but still bumps on Google for 'autohotkey obfuscator'
I've just released a major improved version of David Malia's Dynamic Obfuscator called 'AHK Dynamic Obfuscator L'.
[TOOL] AHK Dynamic Obfuscator L - Protect your code by Obfuscation
I've just released a major improved version of David Malia's Dynamic Obfuscator called 'AHK Dynamic Obfuscator L'.
[TOOL] AHK Dynamic Obfuscator L - Protect your code by Obfuscation
EverFastAccess : Take Notes on anything the Fast way: Attach notes, Set reminders & Speed up research in 1 gesture - AHK topic
AHK Dynamic Obfuscator L - Protect your AHK code by Obfuscation - AHK topic
QuickModules for Outlook : Sort Outlook emails very quickly to multiple folders - AHK topic
Coding takes lots of time and efforts. If I have helped you or if you enjoy one of my free projects, please consider a small donation
Sorry I am working hard at the moment at a new job and can't commit on delays of answers & updates
AHK Dynamic Obfuscator L - Protect your AHK code by Obfuscation - AHK topic
QuickModules for Outlook : Sort Outlook emails very quickly to multiple folders - AHK topic
Coding takes lots of time and efforts. If I have helped you or if you enjoy one of my free projects, please consider a small donation
Sorry I am working hard at the moment at a new job and can't commit on delays of answers & updates
Re: AHK Encrypt/Obfuscate Script
To obfuscate your Autohotkey code, use AHK source code Encryptor v2.0 By FeiYue:
https://autohotkey.com/boards/viewtopic ... +Encryptor
It works very well.
https://autohotkey.com/boards/viewtopic ... +Encryptor
It works very well.
-
- Posts: 150
- Joined: 28 Sep 2016, 11:14
- Contact:
Re: AHK Encrypt/Obfuscate Script
@Cuadrix Do you know if FeiYue's tool is still available?
When I click on the link you posted,the page that comes up says "You are not authorised to read this forum."
When I click on the link you posted,the page that comes up says "You are not authorised to read this forum."
Re: AHK Encrypt/Obfuscate Script
its there... technically. the chinese forums cant be viewed right now. try web.archive or something
-
- Posts: 150
- Joined: 28 Sep 2016, 11:14
- Contact:
Who is online
Users browsing this forum: joefiesta and 300 guests