cancel
Showing results for 
Search instead for 
Did you mean: 

Encryption of file

Former Member
0 Kudos

Hi,

I am aware we can do message encryption....is it possible to encrypt an outgoing file using FILE adapter..??Just a curiosity...Also when XI receives an encrypted file is it possible to decrypt before doing mapping transformations??

-Teresa

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Teresa,

There are 2 options. One simple and a more advanced one.

Simple option:

Use 2 file adapters and the operating system command.

The first adapter writes the file as it came out of XI. Within this adapter use a operating system command to encrypt the file that is created by the file adapter.

The 2nd adapter picks this encrypted file up and sends it to the correct destination.

You will need an extra outbound and inbound interface with a datatype that just contains 1 string element for the binary data.

Advanced option:

You can create your own adapter module and add this to the adapter. Within the adapter module you can manipulate the data stream comming out or going into the adapter using Java.

There is some documentation available on sap help and the service website. (migrating dispatcher classes of the J2SE plain adapter engine).

Kind regards,

Christiaan Schaake.

Former Member
0 Kudos

Hi Christiaan,

My sceanrio works like this.. I get an encrypted file that needs to be decrypted before it can trigger a posting program to post into SAP.. The 3rd party that sends the encrypted file also send the de-encryption software that needs to be installed locally..

But is there a way by which XI has its own de-encryption methodology by which I can get the encrypted file using file-adapter, de-crypt it at XI then post the decrpyted file into SAP...In this manner I can avoid the de-encryption software given by the 3rd party..

If the 3rd party de-encryption software needs to be used, then I will have to get the file through file adapter and pass it on to the input drop box of the de-encryption software and then pass on the de-encrypted file to R/3....I think process can be done using an ABAP interface program and XI does not add much value..

Any ideas...

-Teresa

former_member185751
Contributor
0 Kudos

Hi,

1.Create a Message interface which accepts the encrypted file as a single line string.

i.e., for e.g.,

<XMLINPUT><ENCRYPTED_DATA>s12vRtPLKSfjga</ENCRYPTED_DATA></XMLINPUT>

2.Then write a Java mapping using the third party api's provided (if Java api's are provided by the third party) to decrypt the message and send it to the regular mapping step.

Just sharing my thought...

Regards,

Sridhar

Former Member
0 Kudos

Hi,

I am having same requirement, may i know how you solved that.

thanks

madhusudhan.