Skip to content

Commit

Permalink
Merge pull request #826 from SmartBear/RIA-23076-des-to-aes-compability
Browse files Browse the repository at this point in the history
RIA-23076 Encrypt with AES256
  • Loading branch information
KarolinaNogacka authored Nov 21, 2024
2 parents a2ef49a + 2aae841 commit 829fe81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 829fe81

Please sign in to comment.