Jump to content

Input Box Help


Recommended Posts

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

  • Moderators

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

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.

Link to comment
Share on other sites

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

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

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.

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