Question

3
Replies
1103
Views
Close popover
Andre Genser (AndreG66)
DXC technology
Senior Technology Consultant
DXC technology
DE
AndreG66 Member since 2013 31 posts
DXC technology
Posted: January 11, 2019
Last activity: January 23, 2020
Closed
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
Moderation Team has archived post