【fix sonar】SecurityUtil文件
This commit is contained in:
-2
@@ -23,7 +23,6 @@ public class SecurityUtil {
|
||||
*/
|
||||
public static String jiami(String content) {
|
||||
SymmetricCrypto aes = new SymmetricCrypto(SymmetricAlgorithm.AES, key.getBytes());
|
||||
// String encryptResultStr = aes.encryptHex(content);
|
||||
return aes.encryptHex(content);
|
||||
}
|
||||
|
||||
@@ -34,7 +33,6 @@ public class SecurityUtil {
|
||||
public static String jiemi(String encryptResultStr){
|
||||
SymmetricCrypto aes = new SymmetricCrypto(SymmetricAlgorithm.AES, key.getBytes());
|
||||
//解密为字符串
|
||||
// String decryptResult = aes.decryptStr(encryptResultStr, CharsetUtil.CHARSET_UTF_8);
|
||||
return aes.decryptStr(encryptResultStr, CharsetUtil.CHARSET_UTF_8);
|
||||
}
|
||||
//---AES加密---------end---------
|
||||
|
||||
Reference in New Issue
Block a user