Skip to main content
itsme
Level 3
Jul 20, 2019 2:51 AM UTC
Solved

Decrypt external account password from interaction.js

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 decryptPassword instead. 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.

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Jonathon_wodnicki
Jonathon_wodnickiAccepted solution
Community Advisor
Jul 23, 2019 6:53 PM UTC

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

3 replies

Jonathon_wodnicki
Community Advisor
Jonathon_wodnickiCommunity AdvisorAccepted solution
Community Advisor
Jul 23, 2019 6:53 PM UTC

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

Translate
Level 2
Oct 4, 2019 12:07 PM UTC

decryptString

Warning:

This command is deprecated for the decryption of passwords stored in an external account, use decryptPassword().

Translate
New Member
May 27, 2022 12:14 PM UTC

Hi Scott,

 

Were you able to resolve this issue?

 

Thanks,

Hariharan

Translate