Sign in to follow this  
Followers 0
Kondro

Password to run compiled .exe

3 posts in this topic

Is it possible to make it so when a compiled .exe is opened it asks for a password to open the program?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Google nets so many results, I could only paste a few.

Here is another option:

#include <String.au3>

$pass = InputBox("", "Enter password")

$decrypt = _StringEncrypt(0, "7CC02362EBFC8288317D6E83AC852133F0A21FE6C504B89C49F4FE0732A3D04882873332BD8319D3", $pass)

If Not ($decrypt == "9Aizqifra2YvOsb6OE0i") Then
    MsgBox(0, "", "Incorrect password")
    Exit
EndIf
Edited by Manadar

Share this post


Link to post
Share on other sites

Google nets so many results, I could only paste a few.

Here is another option:

#include <String.au3>

$pass = InputBox("", "Enter password")

$decrypt = _StringEncrypt(0, "7CC02362EBFC8288317D6E83AC852133F0A21FE6C504B89C49F4FE0732A3D04882873332BD8319D3", $pass)

If Not ($decrypt == "9Aizqifra2YvOsb6OE0i") Then
    MsgBox(0, "", "Incorrect password")
    Exit
EndIf

Thanks!, the one from the first link is perfect for me.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0