Reputation: 857
Hi In My application I need to calcluate the md5 Hash Value for a string value... for that I have called DigestUtils.md5Hex(String string)
method... But it is not produced same result always for a same string... The result is inconsistent. In that md5Hex()
method internally md5(string) called. That method returns the different byteArray values for a same string. I am not able to get what exactly happening? Please clarify the issue...
Upvotes: 2
Views: 1476
Reputation: 597076
As you can guess, this is not possible. You are probably passing different strings, but you don't know it. They may differ by a whitespace, for example, or some invisible character.
Upvotes: 2