Showing results for 
Search instead for 
Did you mean: 

MD5 compare problem

Go to solution


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?

0 Kudos
Message 1 of 5
Accepted by topic author Stevengu

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.

0 Kudos
Message 2 of 5


0 Kudos
Message 3 of 5

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...

(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 4 of 5

Forget about what I wrote up there.

I must have had a temporary stupidness 😄


billko solution is the one and only valid one...

0 Kudos
Message 5 of 5