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