How to calculate the hash value of a specific byte array

0

How do I calculate the hash value of a specific byte array?

I'm using MD5 encryption and the code to calculate what I'm using is this:

        byte[] dataRegCodeToCompare = md5.digest(toHash);

The variable toHash is the byte array. I already have a ready table of the values of toHash and dataRegCodeToCompare that have to exit but, the calculated and inserted in dataRegCodeToCompare are not beating.

The values of toHash follow: [52, 80, 69, 82, 68, 73, 57, 78, 69, 67, 56, 73, 56, 80, 49, 73, 53, 79, 48, 68, 65, 65, 51, 67, 52 , 79, 50, 82, 53, 82, 65, 69]

The values of dataRegCodeToCompare are:

asked by anonymous 10.04.2015 / 21:45

0 answers