Author: j16sdiz
Date: 2008-12-19 16:05:12 +0000 (Fri, 19 Dec 2008)
New Revision: 24617

Modified:
   trunk/plugins/XMLLibrarian/XMLLibrarian.java
Log:
byte[] was discarded immediatly

Modified: trunk/plugins/XMLLibrarian/XMLLibrarian.java
===================================================================
--- trunk/plugins/XMLLibrarian/XMLLibrarian.java        2008-12-19 16:04:59 UTC 
(rev 24616)
+++ trunk/plugins/XMLLibrarian/XMLLibrarian.java        2008-12-19 16:05:12 UTC 
(rev 24617)
@@ -936,10 +936,9 @@
        public static String MD5(String text) throws NoSuchAlgorithmException, 
UnsupportedEncodingException  {
                MessageDigest md;
                md = MessageDigest.getInstance("MD5");
-               byte[] md5hash = new byte[32];
                byte[] b = text.getBytes("UTF-8");
                md.update(b, 0, b.length);
-               md5hash = md.digest();
+               byte[] md5hash = md.digest();
                return convertToHex(md5hash);
        }
 }

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to