Sign in to follow this  
Followers 0
kyper

Require a password to continue script

3 posts in this topic

I would like to know how to make that you have to type the correct password into an inputbox in order to continue with the script and exit if the password is wrong.

Share this post


Link to post
Share on other sites



Have you really tried it? It's easy.. here is an example:

$pass = InputBox("Wait...","Insert password, Password = aaa","","*")
If $pass <> "aaa" Then Exit
MsgBox(0,"Yeah","correct password")

Hi ;)

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Have you really tried it? It's easy.. here is an example:

$pass = InputBox("Wait...","Insert password, Password = aaa","","*")
If $pass <> "aaa" Then Exit
MsgBox(0,"Yeah","correct password")

Yea, works great if you don't mind insecure unsecure cleartext passwords.

I recommend using a hashing algorithm instead.

http://www.autoitscript.com/forum/index.php?showtopic=76976

#include "sha1.au3"

$pwd = _SHA1(InputBox("Wait...","Insert password.","My Secret Password.  For your eyes only.","*"))
If $pwd <> "0xCD9FADB53A246C59501F7F966524ADC710A25F86" Then Exit
MsgBox(0,"Yeah","correct password")

edit:

things are unsecure

people are insecure. :)

Edited by spudw2k

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