Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

decryptString function not working in Deliveries

sreev97350841
Level 2
Level 2

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

1 Accepted Solution
Marcel_Szimonisz
Correct answer by
Community Advisor
Community Advisor

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

 

View solution in original post

2 Replies
Marcel_Szimonisz
Correct answer by
Community Advisor
Community Advisor

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

 

View solution in original post

Jonathon_wodnicki
Community Advisor
Community Advisor

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