Search the Community
Showing results for tags 'binarytosting'.
-
I'm having a small issue with use of the BinaryToString function and not finding anything in search on the forum. Here's the short of it: I am encrypting a password and storing that in a file. I open the file reading in the encrypted password into a variable. I use a msgbox function to display the un-encrypted password. It shows correctly. I use the Send function to type the password into a password box in IE. When I click on the password unmask icon (the dot with the curved underscore line), the password is missing the last character. The last character happens to be an exclamation point "!". So, the password is encrypted as: ThisPassword! The password displays in the msgbox using the variable assigned to hold the decrypted password as: ThisPassword! After using the send function and the ******* appears in the password window, clicking on the password unmask icon, what is displayed is: ThisPassword Missing the "!" I'm not sure why this is occurring. Local $dEncrypted = FileRead("C:\Users\_user\Documents\AutoIT\Credential.txt") Local $bEncrypted = _Crypt_DecryptData($dEncrypted, $sUserKey, $CALG_RC4) Local $Password = BinaryToString($bEncrypted) msgbox(0,"",$Password,0); Displays ThisPassword! in the message box window Send($Password); Displays ThisPassword when the password unmask icon is clicked I know I'm missing something simple, but can't seem to figure out what it is. Any help is greatly appreciated. Sincerely, Todd C.