PantZ4 Posted September 2, 2006 Share Posted September 2, 2006 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 More sharing options...
Moderators SmOke_N Posted September 2, 2006 Moderators Share Posted September 2, 2006 GUICtrlRead($passwordtext) 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. Link to comment Share on other sites More sharing options...
PantZ4 Posted September 2, 2006 Author Share Posted September 2, 2006 GUICtrlRead($passwordtext)ty (need read, the command: read :"> ) Link to comment Share on other sites More sharing options...
amanda089 Posted September 2, 2006 Share Posted September 2, 2006 you really should use a hash of the password, plain-text passwords are inherently unsafe. Link to comment Share on other sites More sharing options...
PantZ4 Posted September 2, 2006 Author Share Posted September 2, 2006 (edited) you really should use a hash of the password, plain-text passwords are inherently unsafe.Sorry what? "a hash"?and"plain-text"What does that mean?(I'm not english or good at autoit ) Edited September 2, 2006 by Mr. Zero Link to comment Share on other sites More sharing options...
amanda089 Posted September 2, 2006 Share Posted September 2, 2006 Sorry what? "a hash"? and "plain-text" What does that mean? (I'm not english or good at autoit ) 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 More sharing options...
PantZ4 Posted September 2, 2006 Author Share Posted September 2, 2006 (edited) ok, Thank you very much (both of you) Edited September 2, 2006 by Mr. Zero Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now