Commit 6b24f32a authored by 张永's avatar 张永

1

parent 890af5fa
......@@ -6,11 +6,17 @@ package com.egolm.common;
import java.security.MessageDigest;
import java.util.Iterator;
import java.util.Map.Entry;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Set;
import java.util.SortedMap;
import java.util.TreeMap;
public class MD5Util {
private final static Logger logger = LoggerFactory.getLogger(MD5Util.class);
/**
* 签名算法sign
* @param characterEncoding
......@@ -31,6 +37,7 @@ public class MD5Util {
}
sb.deleteCharAt(sb.length()-1);
System.out.println("签名的字符串:"+sb.toString());
logger.info("签名的字符串: {}",sb.toString());
String sign = MD5Encode(sb.toString(), characterEncoding).toUpperCase();
return sign;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment