How good is Mpress protection? Can you give any tips for protecting code?
Maybe third-party compiler, i use AHK 1.1.26
Protecting code
- WalkerOfTheDay
- Posts: 710
- Joined: 24 Mar 2016, 03:01
Re: Protecting code
I just checked it for you, I compiled a script using MPRESS, and if you rename it to .txt you can see
the entire script in the code. So Mpress isn't protecting your source. It's just making your .exe files smaller.
Unfortunately I have no further recommendations.
the entire script in the code. So Mpress isn't protecting your source. It's just making your .exe files smaller.
Unfortunately I have no further recommendations.
Re: Protecting code
You can try uisng AutoHotkey_H to protect source code but you would need to recompile it with your own password, see Decompiling
Re: Protecting code
U rename what? mpress? or compiled.exe file?WalkerOfTheDay wrote:I just checked it for you, I compiled a script using MPRESS, and if you rename it to .txt you can see
the entire script in the code. So Mpress isn't protecting your source. It's just making your .exe files smaller.
Unfortunately I have no further recommendations.
i rename mpress amd cant find my code
i rename compiled file and cant find my code too
Re: Protecting code
Do u know if i change password its take errorHotKeyIt wrote:You can try uisng AutoHotkey_H to protect source code but you would need to recompile it with your own password, see Decompiling
wait i show to you
can you give me direc link on AutoHotkey_H compiller
- WalkerOfTheDay
- Posts: 710
- Joined: 24 Mar 2016, 03:01
Re: Protecting code
Compiled exe. All the way around the bottom the entiteit code is visible.masheen wrote:U rename what? mpress? or compiled.exe file?WalkerOfTheDay wrote:I just checked it for you, I compiled a script using MPRESS, and if you rename it to .txt you can see
the entire script in the code. So Mpress isn't protecting your source. It's just making your .exe files smaller.
Unfortunately I have no further recommendations.
i rename mpress amd cant find my code
i rename compiled file and cant find my code too
Re: Protecting code
Try to get code this file plz.WalkerOfTheDay wrote:Compiled exe. All the way around the bottom the entiteit code is visible.masheen wrote:U rename what? mpress? or compiled.exe file?WalkerOfTheDay wrote:I just checked it for you, I compiled a script using MPRESS, and if you rename it to .txt you can see
the entire script in the code. So Mpress isn't protecting your source. It's just making your .exe files smaller.
Unfortunately I have no further recommendations.
i rename mpress amd cant find my code
i rename compiled file and cant find my code too
https://yadi.sk/d/X1lEJ1ms3K67qJ TESTFILE
Re: Protecting code
Compiler is included in downloads, to change the password you need to recompile AutoHotkey.exe itself: https://github.com/HotKeyIt/ahkdllmasheen wrote:Do u know if i change password its take error
wait i show to you
can you give me direc link on AutoHotkey_H compiller
Re: Protecting code
i need it?HotKeyIt wrote:Compiler is included in downloads, to change the password you need to recompile AutoHotkey.exe itself: https://github.com/HotKeyIt/ahkdllmasheen wrote:Do u know if i change password its take error
wait i show to you
can you give me direc link on AutoHotkey_H compiller
or it?
Re: Protecting code
You need to compile ahkdll (AutoHotkey_H) and change the password or password technique here: https://github.com/HotKeyIt/ahkdll/blob ... .cpp#L3200.
Ahk2Exe is the compiler for scripts and you can read about v2 here: https://autohotkey.com/v2/.
Ahk2Exe is the compiler for scripts and you can read about v2 here: https://autohotkey.com/v2/.
Re: Protecting code
need i to download AutoHotkey 2.0-a* and recompile my script with standart password?HotKeyIt wrote:You need to compile ahkdll (AutoHotkey_H) and change the password or password technique here: https://github.com/HotKeyIt/ahkdll/blob ... .cpp#L3200.
Ahk2Exe is the compiler for scripts and you can read about v2 here: https://autohotkey.com/v2/.
my scripts were written AutoHotkey 1.1.26.00.
AutoHotkey 1.1.26.00 and AutoHotkey 2.0-a* compatible?
- WalkerOfTheDay
- Posts: 710
- Joined: 24 Mar 2016, 03:01
Re: Protecting code
I cannot! I always compile with the mpress option in the compiler that's delivered with ahk.masheen wrote:Try to get code this file plz.WalkerOfTheDay wrote:Compiled exe. All the way around the bottom the entiteit code is visible.masheen wrote:U rename what? mpress? or compiled.exe file?WalkerOfTheDay wrote:I just checked it for you, I compiled a script using MPRESS, and if you rename it to .txt you can see
the entire script in the code. So Mpress isn't protecting your source. It's just making your .exe files smaller.
Unfortunately I have no further recommendations.
i rename mpress amd cant find my code
i rename compiled file and cant find my code too
https://yadi.sk/d/X1lEJ1ms3K67qJ TESTFILE
Re: Protecting code
No, you need to download AutoHotkey_H 1.1.26.00, change the password/technique and recompile with Visual Studio.masheen wrote:need i to download AutoHotkey 2.0-a* and recompile my script with standart password?
my scripts were written AutoHotkey 1.1.26.00.
AutoHotkey 1.1.26.00 and AutoHotkey 2.0-a* compatible?
Re: Protecting code
AutoHotkey 1.1.26.00 and AutoHotkey_H compatible?HotKeyIt wrote:No, you need to download AutoHotkey_H 1.1.26.00, change the password/technique and recompile with Visual Studio.masheen wrote:need i to download AutoHotkey 2.0-a* and recompile my script with standart password?
my scripts were written AutoHotkey 1.1.26.00.
AutoHotkey 1.1.26.00 and AutoHotkey 2.0-a* compatible?
Last edited by masheen on 18 Jun 2017, 10:10, edited 1 time in total.
Re: Protecting code
Yes, but it uses the default password AutoHotkey, so it is rather easy to decompile!
Re: Protecting code
Do you have to recompile AHK, or can you just change the password by editing the AHK exe binary?
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Re: Protecting code
Thx big thx i try recompile AHK_HHotKeyIt wrote:Yes, but it uses the default password AutoHotkey, so it is rather easy to decompile!
i read about AutoHotKey_H features and i wll use it now
and will wait stable Hv2
Re: Protecting code
I assume you could but try to find it without hacking toolsjeeswg wrote:Do you have to recompile AHK, or can you just change the password by editing the AHK exe binary?
Re: Protecting code
now downloading Visual Studio Comunity 2017 try to recompile sourse AHK_hjeeswg wrote:Do you have to recompile AHK, or can you just change the password by editing the AHK exe binary?
Re: Protecting code
When I ran PC first time I did sucessful compile my script by your quote. After I did some changes via SciTe for my script and tryied again compile it, and now "Could not extract script from EXE." error message. But simple scripts (like MsgBox, Hello!) he still sucesfull compile and I can run them for full stability.HotKeyIt wrote:Sorry, I should have mentioned that you need to use compiler included in download pack.
1. Download
2. Extract ahkdll-v1-release-master.zip
3. Copy ahkdll-v1-release-master\Win32w\AutoHotkey.exe to ahkdll-v1-release-master\Compiler\Ahk2Exe.exe
4. Double click Ahk2Exe.exe
5. Select correct Base File (.bin)
6. Use compression or/and encryption checkboxes.
7. Press > Compile Executable <
In Base File I select v1.1.26.0 AutoHotkeySC.bin (..\Win32w)
My AHK_Hv1 into C:\Program Files\AutoHotkey_H v1 (here is I call Ahk2Exe.exe)
My AHK into C:\Program Files\AutoHotkey
This is a bug?
Who is online
Users browsing this forum: No registered users and 10 guests