I am trying to hash a number represented by a hexadecimal string with a Java security library. Meaning: if I have the string "AABBCCDD", I want to hash it differently from the input ascii, which is 0x65, 0x65, 0x66, 0x66, 0x67, 0x67, 0x68, 0x68, but like four bytes - 0xAA, 0xBB , 0xCC, 0xDD. I managed to do this with values as low as "112233445566" (since the bytes are signed in Java), but failed with high values.
Does anyone know how to implement such a thing?
Thanks Binyamin
source
share