【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);
} catch (Exception e) {
// TODO Auto-generated catch block
// Auto-generated catch block
e.printStackTrace();
}
@@ -138,10 +138,8 @@ public class PasswordUtil {
cipher.init(Cipher.DECRYPT_MODE, key, parameterSpec);
passDec = cipher.doFinal(hexStringToBytes(ciphertext));
}
catch (Exception e) {
// TODO: handle exception
}catch (Exception e) {
// handle exception
}
return new String(passDec);
}