Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

PGP encryption of a file in ABAP on windows server

former_member226234
Contributor
0 Kudos

Hi,

  I need to encrypt a file (PGP encryption) in ABAP. I understand there is no FM to do this in ABAP. I was hoping if i could get the command to do this on the Windows server. I have the unix commands for this, but those don't work on the Windows Server.

I have searched the forums, but i couldn't find the commands. I have no idea about scripting.

Thanks in Advance,

Sandeep

7 REPLIES 7

Former Member
0 Kudos

Hi Sandeep,

You would have to use 3rd party encryption software. There is an open source product which implements GPG for windows and they come with a command line interface. You could call these commands from your ABAP program . GPG4WIN is a pretty popular open source product for OpenPGP encryption http://www.gpg4win.org/about.html. Have a look at it , it might suit your requirement.

Thanks,

Venkat,

0 Kudos

Hi,

Using GPG i am able to encrypt the file on windows environment,but the source file remains same in the location with the encrypted file.can any one throw a light on how to delete source file in the location.

Regards,

Satheesh Kumar N

0 Kudos

Use FM FILE_DELETE to delete the source file.

0 Kudos

Not Working.the file is in application server location.i can able to download the file to application server location using the GUI_DOWNLOAD but unable to delete the file using the above function module.also i tried with delete dataset.but not working.

0 Kudos

Hi,

Here is your query answered.

http://scn.sap.com/thread/1111149

regards,

Ashish Rawat

0 Kudos

Hi Ashish,

can not able to delete the file using FM FILE_DELETE ,the file is on application server,i can able to download the file using WS_DOWNLOAD onto the application server.but not able to delete the same using file_delete function.

Regards,

Satheesh Kumar

0 Kudos

Hi Sateesh,

I have requirement to encrypt the file using , GPG software.

Can you please let me know how did you achieved with the ABAP program .

Sample code any ?

Thanks in Advance .

Thanks,

Chandra.