11-19-2008 06:27 AM
Hello,
i´m usingthe MD5-llb to create a password.
Then i want to save this MD5-string to a file and later read it back abd compare.
Works perfect with one proplem:
Some word create a "\r" in the MD5-string and when i save this string to a file and read it back then its read back as a "\n" so that the compare is not working.
My question is: How can i save a string exactly like it is to somewhere and read it back (also invisible chars)
For example the word: heinz
is in MD5: \r\FB^\07\A6\07T\C7\D9\C2\94\AB\C9\1DS\95 (string indicator as codes display)
when i save the string to a file then i rerad back: \n\FB^\07\A6\07T\C7\D9\C2\94\AB\C9\1DS\95
I used the "write text file" and "read text file"
What do i have to use to save and read the same?
Thx
Solved! Go to Solution.
11-19-2008 06:36 AM
11-19-2008 06:44 AM
Seems to work.
Now i read back \00\00\00\10\r\FB^\07\A6\07T\C7\D9\C2\94\AB\C9\1DS\95
The question is only why there are 4 bytes offset? The first 4 bytes are always 00 00 00 10?
What does this mean?
11-19-2008 06:45 AM
11-19-2008 06:46 AM
The 10 (16 in decimal) is the string length. Set the input "prepend array or string size" to FALSE.
11-19-2008 07:21 AM
Hi Dennis,
this solved my problem. Thx for the tipp
11-19-2008 07:23 AM
Hi dan_u,
thx for the information. But i dont have an input "prepend array or string size".
11-19-2008 07:59 AM
In the binary write function this input exists. In the text function of course it doesn't.
11-19-2008 08:05 AM
Hm, now at the second look there is the input.
I dont know where i looked before.
Thx for the help