decryptString function not working in Deliveries | Community
Skip to main content
Level 2
Jan 26, 2020 10:33 PM UTC
Solved

decryptString function not working in Deliveries

Hello,

Ours is a hybrid installation. We are using the decryptString function to decrypt PII data. In the Preview mode the variables are decrypted successfully and the actual data is shown, but when we send out a proof or an email the variables are all empty. For some reason the mid sourcing server is not able to handle these functions. This worked fine when using own mail servers to send emails. Has any one come across this issue? Are there any setting in the mid server that have to be changed?

 

Thanks

Sree

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Marcel_Szimonisz
Marcel_SzimoniszAccepted solution
New Participant
Jan 27, 2020 7:50 AM UTC

Hello @sreev97350841 

It could be that the function is deprecated and on one instance is already deprecated and on the other not? 

 

Anyway you should be using decryptPassword() instead. But yet another problem that the function is meant only for use in  soap methods. So there is only one option for you to try and that is hmacStr()

 

https://final-docs.campaign.adobe.com/doc/AC/en/jsapi/f-decryptString.html?hl=decryptstring

https://final-docs.campaign.adobe.com/doc/AC/en/jsapi/f-hmacStr.html

Although it may not solve the issue but you can try..

 

2 replies

Jonathon_wodnicki
New Participant
Jan 28, 2020 5:46 PM UTC

Hi,

 

Decrypting won't work with ootb midsource since each instance has a unique key and the midsource transfer software doesn't handle it. Easy answer is just tell Adobe to overwrite the midsource instance's xtk:option 'XtkKey' with the one you give them from your prod instance.

 

Thanks,

-Jon

Translate
Marcel_Szimonisz
Marcel_SzimoniszAccepted solution
New Participant
Jan 27, 2020 7:50 AM UTC

Hello @sreev97350841 

It could be that the function is deprecated and on one instance is already deprecated and on the other not? 

 

Anyway you should be using decryptPassword() instead. But yet another problem that the function is meant only for use in  soap methods. So there is only one option for you to try and that is hmacStr()

 

https://final-docs.campaign.adobe.com/doc/AC/en/jsapi/f-decryptString.html?hl=decryptstring

https://final-docs.campaign.adobe.com/doc/AC/en/jsapi/f-hmacStr.html

Although it may not solve the issue but you can try..

 

Translate