【fix sonar】PasswordUtil文件
This commit is contained in:
+3
-5
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user