Permalink
Browse files

get the nice md5string sum, not the crazy byte stuff.

  • Loading branch information...
1 parent 9a9b6ab commit c9e76ac36f28dc037be1d953d1d9b8fcec74dd50 BuzzTroll committed Oct 19, 2010
@@ -486,7 +486,12 @@ public void unpropagationFinished(
}
fis.close();
byte [] md5b = md5er.digest();
- md5string = new String(md5b);
+ StringBuffer hexString = new StringBuffer();
+ for (int i=0;i<md5b.length;i++)
+ {
+ hexString.append(Integer.toHexString(0xFF & md5b[i]));
+ }
+ md5string = hexString.toString();
}
catch(FileNotFoundException fnf)
{

0 comments on commit c9e76ac

Please sign in to comment.