Pull request #617: RED-6254 - hotfix

Merge in RED/persistence-service from tbejan/EncryptionDecryptionServicejava-1678290630008 to master

* commit 'd6948571c5839105762d9efe0051ed43a5e503b3':
  RED-6254 - hotfix
This commit is contained in:
Timo Bejan 2023-03-08 16:53:27 +01:00
commit 94061a38de

View File

@ -42,6 +42,9 @@ public class EncryptionDecryptionService {
@SneakyThrows
public String encrypt(String strToEncrypt) {
if(strToEncrypt == null){
return null;
}
return Base64.getEncoder().encodeToString(encrypt(strToEncrypt.getBytes()));
}