11-14-2019 01:34 AM - edited 11-14-2019 01:56 AM
Hi,
I use MD5 to save the password, it looks OK but when I use the password "woaini", the compare result is not equal, does someone konw why?
Solved! Go to Solution.
11-14-2019 02:18 AM - edited 11-14-2019 02:19 AM
If you select Code Display (or Hex Display) on both String indicators you will immediately (or not) see the difference.
The MD5 function returns "0D" character which is interpreted as "\r" - carriage return.
When you save that character to file it is changed to "0A" ("\n") - new line.
If you want to save MD5 to a text file first you would need to convert text to ASCII numbers and then save those numbers as text.
This way you will avoid automatic conversion of special characters.
11-14-2019 02:23 AM
Thanks
11-14-2019 05:29 PM
More specifically:
Do you see the little square with the arrows in it on the lower right corner of your read and write text VIs? Those boxes inform you that the VIs are converting EOLs. Right-click on each of them and deselect "Convert EOL" and you should be fine. I hope I got here soon enough that you didn't create some kind of Rube-ish code to compensate for the conversions...
11-15-2019 01:14 AM