You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just encountered in real Google code the expression
md5.digest(string.getBytes())
.toString();
...which would output something like "[B@23fc4bec", which has no relationship at all to the hash of the string.
In general, you always want to use Arrays.toString instead of array.toString(), though this particular user might have preferred e.g. hex encoding or the like.
The text was updated successfully, but these errors were encountered:
Original issue created by lowasser@google.com on 2013-04-10 at 09:28 PM
I just encountered in real Google code the expression
md5.digest(string.getBytes())
.toString();
...which would output something like "[B@23fc4bec", which has no relationship at all to the hash of the string.
In general, you always want to use Arrays.toString instead of array.toString(), though this particular user might have preferred e.g. hex encoding or the like.
The text was updated successfully, but these errors were encountered: