Jump to content

Require a password to continue script


kyper
 Share

Recommended Posts

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...