Jump to content

Password


PantZ4
 Share

Recommended Posts

Global $passwordwindow
Global $password = "test"
Global $msg
Global $passwordenter
Global $passwordexit

$passwordwindow = GUICreate("Password",190,130,(@DesktopWidth-200)/2, (@DesktopHeight-100)/2,$ws_thickframe)
GUICtrlCreateGroup("Password", 10, 10, 170, 55)
$passwordtext = GUICtrlCreateInput("",20,30,150,20,$es_password)
$passwordenter = GUICtrlCreateButton("Enter",15,70,75,20,$BS_DEFPUSHBUTTON)
$passwordexit = GUICtrlCreateButton("Exit",100,70,75,20)
GuiSetState()

While 1
   $msg = GUIGetMsg()

   Select
   
      Case $msg = $GUI_EVENT_CLOSE Or $msg = $passwordexit
         GUIDelete()
         Exit
     Case

How do I get the computer to read the password, there is typed in?

What shall I put in case?

Link to comment
Share on other sites

you really should use a hash of the password, plain-text passwords are inherently unsafe.

Sorry what? :nuke:

"a hash"?

and

"plain-text"

What does that mean?

(I'm not english or good at autoit :P )

Edited by Mr. Zero
Link to comment
Share on other sites

Sorry what? :nuke:

"a hash"?

and

"plain-text"

What does that mean?

(I'm not english or good at autoit :P )

The 128-bit (16-byte) MD5 hashes (also termed message digests) are typically represented as a sequence of 32 hexadecimal digits. The following demonstrates a 43-byte ASCII input and the corresponding MD5 hash:

 MD5("The quick brown fox jumps over the lazy dog") 
  = 9e107d9d372bb6826bd81d3542a419d6

Even a small change in the message will (with overwhelming probability) result in a completely different hash, e.g. changing d to c:

 MD5("The quick brown fox jumps over the lazy cog") 
  = 1055d3e698d289f2af8663725127bd4b

The hash of the zero-length string is:

 MD5("") 
  = d41d8cd98f00b204e9800998ecf8427e

Thats the example from wikipedia.

plain-text is just that, plain text, or any text that a person can easily read.

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...