I am doing some username password validation inside interaction.js file.
I was on version 8860 and I was using decryptString(encPass.toString()) password and it was working fine.
I am trying the same on 8891 version and the same code is not returning any value. I saw that the function is deprecated and suggesting to use
Not the decryptPassword is giving error "ReferenceError: decryptPassword is not defined"
After checking the documentation I found decryptPassword is only available in SOAP whereas the decryptString was available in more areas including JSSP.
So what is the equivalent function which is available in JSSP and other types (workflow, webapp, delivery) and can be used to decrypt password for external account.
Is there any other function that I can use to encrypt a password from interaction.js and compare with the encrypted password. That way I will not require to decrypt the password to compare.
I tried the xtk.session.hashpassword also but no luck.
Solved! Go to Solution.