@@ -0,0 +1,1329 @@
+%0Aimport java.security.MessageDigest;%0A%0Apublic class MessageDigestUtils %7B%0A%0A    private static final char%5B%5D HEXDIGITS = %7B'0','1','2','3','4','5','6','7','8','9', 'A','B','C','D','E','F' %7D;%0A%0A    private MessageDigestUtils() %7B%7D%0A%0A    public static String getMD5(byte%5B%5D inputByteArray)%7B%0A        return get(inputByteArray,%22MessageDigestUtils%22);%0A    %7D%0A%0A    public static String getSHA1(byte%5B%5D inputByteArray)%7B%0A        return get(inputByteArray,%22SHA1%22);%0A    %7D%0A%0A    public static String getSHA256(byte%5B%5D inputByteArray)%7B%0A        return get(inputByteArray,%22SHA256%22);%0A    %7D%0A%0A    private static String get(byte%5B%5D inputByteArray,String algorithm)%7B%0A        try %7B%0A            MessageDigest messageDigest = MessageDigest.getInstance(algorithm);%0A            messageDigest.update(inputByteArray);%0A            byte%5B%5D resultByteArray = messageDigest.digest();%0A            return byteArrayToHex(resultByteArray);%0A        %7Dcatch (Exception e)%7B%0A            return null;%0A        %7D%0A    %7D%0A%0A    private static String byteArrayToHex(byte%5B%5D byteArray) %7B%0A        char%5B%5D resultCharArray =new char%5BbyteArray.length * 2%5D;%0A        int index = 0;%0A        for (byte b : byteArray) %7B%0A            resultCharArray%5Bindex++%5D = HEXDIGITS%5Bb%3E%3E%3E 4 & 0xf%5D;%0A            resultCharArray%5Bindex++%5D = HEXDIGITS%5Bb& 0xf%5D;%0A        %7D%0A        return new String(resultCharArray);%0A    %7D%0A%7D%0A

add MessageDigestUtils