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"decryptPassword
instead.
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.
Alternatively I am thinking about xtk.session.Logon method. But if called from javascript, does it make SOAP call internally or it just does a local execution. For the performance reason I don't want to make another SOAP call from interaction.js file.
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.
Hi,
To decrypt extaccount passwords, use decryptString(), which is accessible via jsapi in jssp's.
Have to ask though, what are you authenticating specifically?
Thanks,
-Jon
Hi,
To decrypt extaccount passwords, use decryptString(), which is accessible via jsapi in jssp's.
Have to ask though, what are you authenticating specifically?
Thanks,
-Jon
Warning:
This command is deprecated for the decryption of passwords stored in an external account, use decryptPassword().
Views
Replies
Total Likes
Hi Scott,
Were you able to resolve this issue?
Thanks,
Hariharan
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies