Question

3
Replies
897
Views
AndreG66 Member since 2013 31 posts
DXC technology
Posted: 1 year ago
Last activity: 8 months ago
Solved

Decrypt Passwort from Authentication Profile

Hi,

we have the requirement to store a so called "secret" in Pega. It needs to be encrypted because of Security constraints. My idea is to use the rule "Authenticate Profile" where I can store username and passwords. I'm able to read the value from the database, which is stored in pyPassword property, but of course it is encrypted. How can I decrypt it? I found the following java code, but it is not working:

String pwd = tools.getPRCrypto().decrypt("waQMEJn+pAdD0RouFGT52KM8jiZf2O2OFbA5D7LiYMk=");
oLog.error("-->" + pwd);

pwd is still same.

Regards, Andre

Data Integration Java and Activities
Share this page LinkedIn