whycxzp
2023-02-24 e0b305d53c2d34bf8b818f2964da0f6055be7320
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package com.whyc.util;
 
import org.apache.commons.codec.digest.DigestUtils;
 
/**加密相关*/
public class CipherUtil {
 
    /**MD5对称加密*/
    public static Object encryptMD5(Object obj){
        String md5=null;
        if(obj!=null && obj.toString().length()>0){
            md5= DigestUtils.md5Hex(obj.toString());
        }
        return md5;
    }
 
}