|
@@ -2,8 +2,10 @@
|
|
|
|
|
|
package com.xet.shiro.utils;
|
|
|
|
|
|
+import com.xet.properties.JwtProperties;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.apache.shiro.crypto.SecureRandomNumberGenerator;
|
|
|
+import org.springframework.util.DigestUtils;
|
|
|
|
|
|
/**
|
|
|
* 盐值包装工具类
|
|
@@ -22,7 +24,7 @@ public class SaltUtil {
|
|
|
return null;
|
|
|
}
|
|
|
// 加密方法
|
|
|
- String newSalt = DigestUtils.sha256Hex(secret + salt);
|
|
|
+ String newSalt = DigestUtils.md5DigestAsHex((secret + salt).getBytes());
|
|
|
return newSalt;
|
|
|
}
|
|
|
|