swstrau118 Posted August 6, 2013 Share Posted August 6, 2013 Hello I am wondering, is it possible to have an Input box pop up where you can type your password in and then have it save it in "Memory" until computer is restarted? So you will only need to type in the password once and it will remember it. I don't want to store the password in the Autoit exe because someone can grab it, so looking for some help. Here is what I have so far #include <IE.au3> $oIE = _IECreate ("website") $oForm = _IEFormGetObjByName ($oIE, "MAIN") $oQuery1 = _IEFormElementGetObjByName ($oForm, "SITE") $oQuery2 = _IEFormElementGetObjByName ($oForm, "LOGON_ID") $oQuery3 = _IEFormElementGetObjByName ($oForm, "PASSWORD") $sin="1001" $uname=@UserName $pwd = InputBox("Security Check", "Enter your password.", "", "*") _IEFormElementSetValue ($oQuery1,$sin) _IEFormElementSetValue ($oQuery2,$uname) _IEFormElementSetValue ($oQuery3,$pwd) $oButton=_IEGetObjById($oIE,"ENTER") _IEAction ($oButton, "click") _IELoadWait($oIE,0) Link to comment Share on other sites More sharing options...
jaberwacky Posted August 6, 2013 Share Posted August 6, 2013 You could store it encrypted in a file? Sorry, layman here. Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
FireFox Posted August 6, 2013 Share Posted August 6, 2013 Hi, Take a look at the _Crypt*, File* functions in the helpfile. Br, FireFox. Link to comment Share on other sites More sharing options...
swstrau118 Posted August 6, 2013 Author Share Posted August 6, 2013 I am not sure how the _Cyrpt actually works - I don't understand how you can encrypt the password and send it not encrypted.. Could you help me understand this? That would be a great help Link to comment Share on other sites More sharing options...
FireFox Posted August 6, 2013 Share Posted August 6, 2013 (edited) There are the helpfile examples, I can't help you more than them.Br, FireFox. Edited August 6, 2013 by FireFox Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted August 6, 2013 Moderators Share Posted August 6, 2013 I have, at times, used registry - just convert to binary and bury it somewhere so you're not including additional files. As with all things, a determined enough person is going to find it either way. $pw = "MyPassword" $hash = Binary($pw) RegWrite("HKCU\Software\MyAutoItApp", "hex", "REG_BINARY", $hash) "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
jaberwacky Posted August 6, 2013 Share Posted August 6, 2013 Let's combine the best of both worlds. Use *_crypt on the password and then store it in the registry. Protip: AutoIt may not be the best if the application must be totally secure. I imagine that after someone types in the password but before it gets encrypted a malicious hacker can retrieve the password and then have access to your porn or your Carpenter's album collection. Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
swstrau118 Posted August 7, 2013 Author Share Posted August 7, 2013 I don't need it to be completely secure, just so that if someone looks at the source code they won't see the password in Plain text. How can you store the password in the registry? Am i correct that the _Crypt allows you to type in a password which will encrypt it and then you can store that in the registry without having the password in plain text in your source code? If so when you want to send your password to say log into your gmail - how could it decrypt your password? Thanks for all your help - this one has got me stumped Link to comment Share on other sites More sharing options...
jaberwacky Posted August 7, 2013 Share Posted August 7, 2013 gmail won't decrypt, you'll need to do that before it's sent. Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
swstrau118 Posted August 7, 2013 Author Share Posted August 7, 2013 Is there a way you can decrypt the password without showing the password in your source code? I wonder if there is a way to have an inputbox where you can type in the password and it would be put into an array (non encrypted) and as long as the script is running you can send the password. Once you close the script and re-run it you'll have to type it in again once.. and it will store the password so everytime you execute the script it would send the password that is stored in memory. Do you think this is possible? Link to comment Share on other sites More sharing options...
jaberwacky Posted August 7, 2013 Share Posted August 7, 2013 The plain text password does not have to be stored in the script. The only time it has to be plaintext is shortly before it's encrypted and shortly after it's decrypted. Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? 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