Jump to content

Recommended Posts

Posted

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.

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

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
×
×
  • Create New...