k66any Posted August 19, 2010 Share Posted August 19, 2010 Hi All I am a newbie to the Autoit software and currently automating various web based system creations. I have a gui which writes to an excel file where the passwords are stored and would like to encript the passwords on the excel sheet to make it more secure if anyone managers to get access. it also needs to decrypt the file on the gui to show the correct passwords, as this is very secure as it validates against the users LAN account. Your help is very much appreciated. $Input1 = GUICtrlCreateInput("", 96, 16, 129, 21) $Input2 = GUICtrlCreateInput("", 96, 48, 129, 21) $Input10 = GUICtrlCreateInput("", 96, 80, 129, 21) $i1 = 1 $AVATARID = _ExcelReadCell($oExcel, $i1, 2) ;MsgBox(1, "", ""& $AVATARID) $i2 = 2 $AVATARDATE = _ExcelReadCell($oExcel, $i2, 2) ;MsgBox(1, "", ""& $AVATARDATE) $i3 = 3 $AVATARPW = _ExcelReadCell($oExcel, $i3, 2) ;MsgBox(1, "", ""& $AVATARPW) GUICtrlSetData($Input1,$AVATARID) GUICtrlSetData($Input2,$AVATARPW) GUICtrlSetData($Input10,$AVATARDATE) func open() $tester200=guiCTRLREAD($iNPUT1) $tester201=guiCTRLREAD($iNPUT2) $tester210=guiCTRLREAD($iNPUT10) $ID_PW = @ScriptDir & "\PW.xlsx" $oExcel = _ExcelBookOpen($ID_PW, $fVisible = 1);Create new book, make it visible sleep(2000) _ExcelWriteCell($oExcel, ($tester200), $i1, 2) ;Write to the Cell _ExcelWriteCell($oExcel, ($tester201), $i3, 2) ;Write to the Cell _ExcelWriteCell($oExcel, ($TESTER210), $i2, 2) ;Write to the Cell MsgBox(0, "Exiting", "Press OK to Save File and Exit") _ExcelBookSaveAs($oExcel,"\PW.xlsx") ; Now we save it into the temp directory; overwrite existing file if necessary _ExcelBookClose($oExcel) ; And finally we close out Link to comment Share on other sites More sharing options...
kaotkbliss Posted August 19, 2010 Share Posted August 19, 2010 A fairly simple solution and the first that comes to mind is You could do a stringreplace, substituting letters for numbers or letters for other letters when entering the data to the spread sheet, and then substitute back when reading from the sheet. 010101000110100001101001011100110010000001101001011100110010000 001101101011110010010000001110011011010010110011100100001 My Android cat and mouse gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy! 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