|
@@ -4,6 +4,7 @@ import java.nio.charset.StandardCharsets;
|
|
|
import java.security.MessageDigest;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
+import sun.security.provider.MD5;
|
|
|
|
|
|
/**
|
|
|
* Md5加密方法
|
|
@@ -56,7 +57,8 @@ public class Md5Utils
|
|
|
{
|
|
|
try
|
|
|
{
|
|
|
- return new String(toHex(md5(s)).getBytes(StandardCharsets.UTF_8), StandardCharsets.UTF_8);
|
|
|
+ return toHex(md5(s));
|
|
|
+// return new String(toHex(md5(s)).getBytes(StandardCharsets.UTF_8), StandardCharsets.UTF_8);
|
|
|
}
|
|
|
catch (Exception e)
|
|
|
{
|