Jump to content
Sign in to follow this  

Encryption Excel

Recommended Posts


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)




func open()




$ID_PW = @ScriptDir & "\PW.xlsx"

$oExcel = _ExcelBookOpen($ID_PW, $fVisible = 1);Create new book, make it visible


_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

Share this post

Link to post
Share on other sites

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.



My Android cat and mouse game

We're gonna need another Timmy!

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.