Page 1 of 1

Encryption

Posted: 12 Mar 2017, 06:08
by norths1
How to encrypt a script?
When I turn on the checkbox "Encrypt", the script doesn't work even with the standard password "AutoHotkey" or without it.

if the checkbox "Encrypt" is checked, you can see this message:
Image

I use AHK_H v1

And how to change the password in the source code?
g_default_pwd isn't working, it shows the same error

Re: Encryption  Topic is solved

Posted: 12 Mar 2017, 07:57
by HotKeyIt
Did you use correct bin file and Ahk2Exe? If you want ANSI, both needs to be ANSI, same for unicode!

Re: Encryption

Posted: 12 Mar 2017, 08:15
by norths1
Thank you. I chose AutoHotkeySC.bin, but it's packed with the only noe resource (E4847ED08866458F8DD35F94B37001C0)

Re: Encryption

Posted: 12 Mar 2017, 12:29
by norths1
the password is easy to hack via ollydbg or injection :(

Re: Encryption

Posted: 12 Mar 2017, 13:13
by HotKeyIt
norths1 wrote:Thanks, i'm select AutoHotkeySC.bin, but it's packed only with 1 resource (E4847ED08866458F8DD35F94B37001C0)
That is correct, only one resource if your AutoHotkeySC.bin does not contain AutoHotkey.dll and AutoHotkeyMini.dll.
norths1 wrote:ehh, password easy hacking via ollydbg or injecting :(
This is an opensource application, whatever measures you take it will be impossible to hide source 100%.
If you like you can drop me a pm explaining the 'easy' way to get the password and I can take a look if I can make it more difficult.

Re: Encryption

Posted: 14 Mar 2017, 17:57
by HotKeyIt
Thanks for the pm ;)

I have now improved hiding default password, see: https://autohotkey.com/boards/viewtopic ... 65#p135165