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:
commit
94061a38de
@ -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()));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user