how can we decypt/unzip the file received in SFTP usung File transfer activyt in acc | Community
Skip to main content
Level 3
January 30, 2024
Question

how can we decypt/unzip the file received in SFTP usung File transfer activyt in acc

  • January 30, 2024
  • 1 reply
  • 931 views
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

isahore
Community Advisor
Community Advisor
January 30, 2024

Hi @jefrii,

File transfer activity does not provide inbuilt decryption or decompression. These are provided in the data loading (file) activity.

It offers by default one operation, either decompression or decryption, in a single step. You can fall back to the old way of preprocessing where you can write a script to decompress and decrypt simultaneously. This can be done by adding the option variable "XtkSecurity_Disable_Preproc" as integer type and setting the value to 1. It is however not recommended as it poses a security risk.


Alternatively, you can run a command to decrypt the file in a js activity first, and then decompress the file using the OOTB feature from the data loading activity.

 

Let me know if that works.

 

BR,

Ishan

jefriiAuthor
Level 3
January 30, 2024

Hi @isahore 

 

as mentioned by you:

 

It offers by default one operation, either decompression or decryption, in a single step.

 

1.if i select decompression option

what is the code i had to write to decompress it,and why please specify in detaail?

 

2.

f i select decrypt option

what is the code i had to write to decrypt it and where

, please specify?

 

3.if we had to decrypt and decompress both ..then how we can do??

isahore
Community Advisor
Community Advisor
January 30, 2024

@jefrii,

for 1 and 2, there is no code to be written. That all happens singularly in the data loading activity.

For doing both in the same activity, you need to enable the option I mentioned earlier and write a script, basically the decrypt and decompress commands in sequence (pipe separated most likely).

https://experienceleague.adobe.com/docs/control-panel-learn/tutorials/instance-settings/gpg-key-management/decrypt-data.html?lang=en#access_token=eyJhbGciOiJSUzI1NiIsIng1dSI6Imltc19uYTEta2V5LWF0LTEuY2VyIiwia2lkIjoiaW1zX25hMS1rZXktYXQtMSIsIml0dCI6ImF0In0.eyJpZCI6IjE3MDA1NTYwOTkyODJfMzA1ZmM0MTktNjBhYy00ODY4LWExYTYtYzQxMGI4NWRjYjI0X3V3MiIsInR5cGUiOiJhY2Nlc3NfdG9rZW4iLCJjbGllbnRfaWQiOiJFeHBlcmllbmNlTGVhZ3VlIiwidXNlcl9p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