Skip to main content
Share Your Experience: Take the 2024 Developer Survey

New answers tagged

4 votes

Get a hash from XML

Your problem is that in the C# code, prior to canonicalization, you parsed the XML document with a parser that strips whitespace, whereas in Java, you preserved the whitespace. In general whitespace ...
Michael Kay's user avatar
  • 3,529
4 votes

Get a hash from XML

In both your C# and Java code, you are simply hashing the byte sequence contained in the string variable result. This will only yield the same hash value if both strings are byte for byte identical. ...
Stephen C. Steel's user avatar

Top 50 recent answers are included