Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Func _AutoMD5_Data_Decrypt...degradeable?

$
0
0
I am using the Func _AutoMD5_Data_Decrypt to password protect my script. It reads the key from an INI file. It has worked fine for about a month or so. Now suddenly it tells me that the password I type in is wrong. I tried to make a new key with the same password, and it still tells me it is wrong. Does this method "degrade" over time? I am typing the password in as I always have.
[ autoit ]      
Func _AutoMD5_Data_Decrypt($sInput) ; Returns true if passwords match, or false if they don't. $iKey = FileCopy("\\server\folder\key.ini", @ScriptDir) Global $sPass = IniRead(@ScriptDir & "\key.ini", "main", "key", "INI NOT FOUND") _Crypt_Startup() $sEncryptedInput = _Crypt_HashData($sInput, $CALG_MD5) _Crypt_Shutdown() If String($sEncryptedInput) = String($sPass) Then $sReturn = "True" Else $sReturn = "False" EndIf FileDelete(@ScriptDir & "\key.ini") EndFunc ;==>_AutoMD5_Data_Decrypt

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>