【fix sonar】PasswordUtil文件

This commit is contained in:
梁琦涛
2023-03-13 10:35:49 +08:00
parent ef738f99d6
commit 3106d57d69
@@ -65,7 +65,7 @@ public class PasswordUtil {
// 生成密钥 // 生成密钥
secretKey = keyFactory.generateSecret(keySpec); secretKey = keyFactory.generateSecret(keySpec);
} catch (Exception e) { } catch (Exception e) {
// TODO Auto-generated catch block // Auto-generated catch block
e.printStackTrace(); e.printStackTrace();
} }
@@ -138,10 +138,8 @@ public class PasswordUtil {
cipher.init(Cipher.DECRYPT_MODE, key, parameterSpec); cipher.init(Cipher.DECRYPT_MODE, key, parameterSpec);
passDec = cipher.doFinal(hexStringToBytes(ciphertext)); passDec = cipher.doFinal(hexStringToBytes(ciphertext));
} }catch (Exception e) {
// handle exception
catch (Exception e) {
// TODO: handle exception
} }
return new String(passDec); return new String(passDec);
} }