Quantcast
Channel: SCN : Document List - ABAP Development
Viewing all articles
Browse latest Browse all 935

PGP File Encryption, Decreption using SM 69 in ABAP

$
0
0

Hi Friends,

 

Here, i would like share he can we do the file PGP Encryption and Decryption by using SM69 in SAP ABAP.

 

To access the PGP commands from the SM69 first PGP s/w has to install on UNIX server.

 

If the pgp s/w is not installed on the your server you can't able to access the pgp commands.

 

File Encryption:

 

 

command: pgp -e <filename> -r <username>

 

 

pgp_encrypt.PNG

 

when u are executing the command in the additional parameters you have to pass the <filenmae> -r username.

 

In your ABAP pgm you can call the FM   SXPG_COMMAND_EXECUTE by passig the above external command ZUNIX_COMMAND_EN.

 

File Decryption

 

command:   command: pgp --decrypt <filename.pgp> --symmetric-passphrase 'test' --overwrite remove --outputfile <outputfolder>

pgp_decrypt.PNG

when u are executing the command in the additional parameters you have to pass the <filename.pgp> --symmetric-passphrase 'test' --overwrite remove --outputfile <outputfolder>.

In your ABAP pgm you can call the FM   SXPG_COMMAND_EXECUTE by passig the above external command ZUNIX_COMMAND_EN.

 

 

Regards,

Santhoshi.


Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>