Why byte[] comparison differs from hex comparison? I am computing a hash value of the same string with return type of byte[]
byte[] hash1 = md5sum('3078RUR26')
byte[] hash2 = md5sum('3078RUR26')
I get [B@7852e92 and [B@4e25154f respectively.
However, if I use the same function and do bitwise Integer.toHexString on hash1 and hash2 afterwards, I get 5ddff3704bc83a675f3f51671da9c2c for both statements. Why?