From 2aae841924f0673e219e46ce8cf4a93a70940042 Mon Sep 17 00:00:00 2001 From: Karolina Date: Thu, 31 Oct 2024 16:16:45 +0100 Subject: [PATCH] RIA-23076 Encrypt with AES256 --- soapui/src/main/java/com/eviware/soapui/DefaultSoapUICore.java | 2 +- .../src/main/java/com/eviware/soapui/impl/wsdl/WsdlProject.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/soapui/src/main/java/com/eviware/soapui/DefaultSoapUICore.java b/soapui/src/main/java/com/eviware/soapui/DefaultSoapUICore.java index 1f1ffd34ca..f602a4269d 100644 --- a/soapui/src/main/java/com/eviware/soapui/DefaultSoapUICore.java +++ b/soapui/src/main/java/com/eviware/soapui/DefaultSoapUICore.java @@ -452,7 +452,7 @@ public String saveSettings() throws Exception { if (password != null && password.length() > 0) { try { byte[] data = settingsDocument.xmlText().getBytes(); - String encryptionAlgorithm = "des3"; + String encryptionAlgorithm = "aes256"; byte[] encryptedData = OpenSSL.encrypt(encryptionAlgorithm, password.toCharArray(), data); settingsDocument.setSoapuiSettings(null); settingsDocument.getSoapuiSettings().setEncryptedContent(encryptedData); diff --git a/soapui/src/main/java/com/eviware/soapui/impl/wsdl/WsdlProject.java b/soapui/src/main/java/com/eviware/soapui/impl/wsdl/WsdlProject.java index a7758f4f59..34119eda0a 100644 --- a/soapui/src/main/java/com/eviware/soapui/impl/wsdl/WsdlProject.java +++ b/soapui/src/main/java/com/eviware/soapui/impl/wsdl/WsdlProject.java @@ -881,7 +881,7 @@ private ProjectConfig encrypt(SoapuiProjectDocumentConfig projectDocument) throw // we have password so do encryption try { String data = getConfig().xmlText(); - String encryptionAlgorithm = "des3"; + String encryptionAlgorithm = "aes256"; byte[] encrypted = OpenSSL.encrypt(encryptionAlgorithm, passwordForEncryption.toCharArray(), data.getBytes()); ProjectConfig newProjectConfig = ProjectConfig.Factory.newInstance(); ProjectConfig soapuiProject = projectDocument.getSoapuiProject();