Skip to content
Advertisement

Tag: hmac

What is the equivalent of hashing Java code into C#?

I have a strange problem in getting equivalent hash code from C# code translated into Java. I don’t know, what MessageDigest update method do. It should only update the contents of digest and should compute hash after calling digest. Same thing I am doing in C# with SHAManaged512.ComputeHash(content). But I am not getting same hash code. Following is the Java

Advertisement