Sign in to follow this  
Followers 0
PantZ4

Password

7 posts in this topic

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?

Share this post


Link to post
Share on other sites



GUICtrlRead($passwordtext)


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

GUICtrlRead($passwordtext)

ty (need read, the command: read :"> )

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

ok, Thank you very much :P

(both of you)

Edited by Mr. Zero

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