lsalamon / nhin-d

Automatically exported from code.google.com/p/nhin-d
0 stars 0 forks source link

XdmPackage: should't convert byte array to Stirng #181

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
To generate a hash value, byte array shouldn't be converted to String.

xd-common, org.nhindirect.xd.common.XdmPackage(line:246):
String digest = DirectDocument2.getSha1Hash(byteArrayOutputStream.toString());
-->
String digest = 
DirectDocument2.getSha1Hash(byteArrayOutputStream.toByteArray());

Original issue reported on code.google.com by teru.mor...@gmail.com on 2 Mar 2012 at 3:57