Question

2
Replies
51
Views
Arun Kumar (Arun.Kothapalli)
BOS
Application Development Specialist
BOS
SG
Arun.Kothapalli Member since 2016 12 posts
BOS
Posted: May 7, 2021
Last activity: 1 day 14 hours ago
Posted: 7 May 2021 2:26 EDT
Last activity: 16 Jun 2021 7:01 EDT

Unable to Encrypt Data using AES 256 and Key

I have a requirement to encrypt the data before generating the text file and transfer this text file to downstream application for decrypting and processing the data.

Below are few options tried: I am able to encrypt the file using OOTB method but destination nation system is not able to decrypt using the jks used to encrypt.

I wrote custom java code by passing Key and String to extract. Custom code is working fine in Eclipse both encryption and decryption. But when using inside function, Receiving illegalblocksizeexception .

 

Steps to reproduce the issue

1. Create a function with custom code with params (string to encrypt and key) 2. Call the function in DT 3. Trigger call to DT and throws exception

***Edited by Moderator Marissa to update Product details, Content Type from Discussion to Question***
Pega Platform 7.4 Security Project Delivery