Password field decryption through activity and comparing the confirm password and password to add on section

Problem statement-

Recently i had faced challenges on one particular scenario.

  1. Business had create new user/operator screen. where it had new password and confirm password text input password fields.

  1. On button click we were suppose to compare the password to add and password to confirm.

  2. when we tried simply comparing the property values on these input fields we found that comparison was not working since the values of properties were encrypted.

Solution-

  1. we added logic in activity , we created a step that will decrypt password to add and confirm password , and compare those values post decryption. condition in when rule is as below this is expression

@decryptPW(.newPass)==@decryptPW(.confirmPass)

  1. based on miss match we added page message on clipboard

Hi @LondheGS

Do you have any thoughts on the how to decryption of the existing password?

Please let us know.

Thanks,

Ashok

@Bhumireddy existing in the sense are you saying the Pega login password? or password on any custom UI section from application?

@Bhumireddy can you please elaborate here what is “existing password” ? is it you Pega Login password? or any other password field from Custom section?

Hi @LondheGS,

Pega Login Password, I can view the password through the query runner, but it is encrypted. How can we decrypt?

Thanks,

Ashok

@Bhumireddysorry using this method we can only compare the decrypted passwords from the referenced properties we can not view the decrypted value of password. And this is applicable for the input password controls which are inside any custom pega application