Cannot output correct hash in Java. What is wrong?
问题 In my Android app I have a SHA256 hash which I must further hash with the RIPEMD160 message digest algorithm. I can output the correct sha256 and ripemd160 hash of any string, but when I try to hash the sha256 hash with ripemd160 I get a hash which is incorrect. According to online hash calculators, the SHA256 value of the string 'test'(all lowercase) is: 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08 And the RIPEMD160 value of the string 'test' is: