Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I automated my Yahoo! login process with AutoHotkey.

It works fine, but problem is that when running this .ahk file, anybody can open the script and see the password.

Is there a way I could encrypt this password?

share|improve this question
If you encrypt the password somehow, AHK will have to decrypt it automatically. Once again, this makes your password available to anyone. – Dennis Jan 17 '13 at 19:58
no on the gui where it pasted it looks **** so that won't be problem. – vishalsharma Jan 18 '13 at 5:21
1. Inspecting the AHK source code will tell you the encrypted password and how to decrypt it. 2. In Chrome, e.g., you can right-click the password field, click *Inspect element and change the input's type from *password to text. No more asterisks. – Dennis Jan 18 '13 at 11:40
up vote 3 down vote accepted

AutoHotkey can compile your AHK script to an executable (.exe) with its build-in tool ahk2exe.
The compiler encrypts your source data and its hard to decompile it. (But its not impossible)

enter image description here

Edit: To my knowledge it is not possible to just encrypt a single string within a script and leave the rest untouched. Encrypting the whole script will be the way to go.

share|improve this answer
thanks for the answer but this i already know!! – vishalsharma Jan 17 '13 at 13:10
WARNING: For the current version of AHK, this does NOT appear to encrypt the contents of the script in any way whatsoever. I just tested this and found that just opening the resulting EXE in Notepad++ allows you to view the full text of the original script in its entirety (search for "<COMPILER:"). – Jon Hoffman Mar 4 at 16:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.