cancel
Showing results for 
Search instead for 
Did you mean: 

Encrypting a file using PGP

Former Member
0 Kudos

Hi All,

In my scenario i need to pick up a file,encrypt it using PGP and then send it destination folder.

As i am new to XI ,I don't have any idea how to encrypt the file using PGP.it would be helpful for me if anyone could help me.

Regards,

Hemanth.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

An update to the URL provided elsewhere in this link:

http://www.aedaptive.com/index.php/solutions/pgp-for-sap-netweaver

Gordon

Former Member
0 Kudos

Hey

In our case,we did encryption/decryption via OS script,saved us from writing modules or buying any third party tool.

Thanx

Aamir

Former Member
0 Kudos

Hi Aamir,

How did you guys do the encryption using OS scripts?

Have you used PGP Command Line?

Please respond.

reg

Shabarish_Nair
Active Contributor
0 Kudos

thats a tough one.

Following are the solutions;

1. write a module to do the encryption - a tough choice

2. Buy PGP modules from 3rd parties that can be used in your adapter to do the enc/decryption

eg. http://www.aedaptive.com/index.php?option=com_content&task=view&id=52&Itemid=66

Former Member
0 Kudos

I am trying to write a PI module that would allow us to encrypt data in memory before using the File/FTP adapter to either write the data to disk or send the data to an external system. We want to avoid writing unencrypted data to disk, even for a short time.

I've written a Java wrapper around the Bouncy Castle cryptographic library. Piece of cake. I can receive a String, encrypt it, and return the resulting String.

Now I'm trying to figure out what to do in the Module with the ModuleData. I don't have a good example to follow. I want to take the output data as a String, encrypt it to a new String, and put it back in the ModuleData in a way that the File/FTP adapter can save the data.

It looks like I'm going to get the XML representation of the data, though. What I want to encrypt is the text that would have been written out by the File/FTP adapter.

Any suggestions?

Thanks,

-Andy

Former Member
0 Kudos

Andy,

Can't we do wrapper thing in a java mapping and that would return the encrypted string

This would actually save us from writing the adapter module - correct me if I am wrong.

Could you please help me with this?

reg

VijayKonam
Active Contributor
0 Kudos

But by that time, data would have already been written to the disk..!! Think module is the only option. May be we can read the raw file (No content conversion) then in an adapter module use PGP API to encrypt the complete string and create an XML with only one element. Send this to IE (Or you can skip if all that we need is encryption by using dummy interface and namespace in ID). Write it to the output side.

Only thing is, one needs to find out if the data is already written to disk when the adapter picks the file..!!

VJ

Former Member
0 Kudos

I can suggest two Solutions.

First : Install the reliable encryption tool in XI Server and with the help of OS encrypt the file, put it in a temp location in XI server and then pick it and send to receiver and delete the temp file from the XI server.

Second: (I did it) - Using Bouncy Castle API's for PGP encryption, develop Adapter Module. This module will contains the parameters like public key location, type of algorithm etc. You can also trace i.e. Error logs that will help while Adapter Monitoring.

Thanks

Farooq

Former Member
0 Kudos

Hi Farooq, I have a requirement to write an adapter module using BouncyCastle for PGP encryption. Can you please provide insight into what bouncycastle jars you used and how you used them? Thanks!