Question

3
Replies
1212
Views
Close popover
Andre Genser (AndreG66)
Vodafone GmbH
Senior Technology Consultant
Vodafone GmbH
DE
AndreG66 Member since 2013 31 posts
Vodafone GmbH
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,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.