@@ -0,0 +1,528 @@
+package org.zstack.utils;%0D%0A%0D%0Aimport java.io.File;%0D%0Aimport java.io.FileInputStream;%0D%0A%0D%0A/**%0D%0A * Created by frank on 3/3/2016.%0D%0A */%0D%0Apublic class Digest %7B%0D%0A    public static String getMD5(String filePath) %7B%0D%0A        try %7B%0D%0A            FileInputStream fis = new FileInputStream(new File(filePath));%0D%0A            String md5 = org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);%0D%0A            fis.close();%0D%0A            return md5;%0D%0A        %7D catch (Exception e) %7B%0D%0A            throw new RuntimeException(e);%0D%0A        %7D%0D%0A    %7D%0D%0A%7D%0D%0A

add Digest.getMD5()