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: 

encrypting and decrypting a file with abap

0 Kudos

Hello,

We need to decrypt a .pdf file with an abap code or external command (or any other way...).

the file is encrypt with "aes256" algorithm.

The result must be a decrypted .pdf  file on an output folder on a server that will be secured.

Thank you ,

Koby 

4 REPLIES 4

former_member182915
Active Contributor
0 Kudos


Hi,

Topic is interesting .

after achieve solution please share in Community,

Encrypting PDF Files Using ABAP Code

Collected from Web*
==================
Here’s the ABAP or SAP sample code to call EncryptPDF command line application,

REPORT  Z_Calling_EXE_Program.

CALL FUNCTION 'GUI_RUN'
EXPORTING
COMMAND          = 'C:\encryptpdf.exe'
PARAMETER         = ' -i c:\sample.pdf -w owner -u user -e 40 -p'.
*   CD               = '
* IMPORTING
*   RETURNCODE       = .

0 Kudos

Hi,

Thank you for your answer.

1. Where can I find the app "encryptpdf.exe" ? Can I trust the supplier ?

    My company is not "happy" to install "foreign software" on out site.

2. I need to run a  decrypt process , not encrypt process..

3. the process is going to run on background , so I can't run "gui_run".    

koby. 

0 Kudos

HI Kobi,

What is your Application Server OS?

Because, some of the OS contains some default command line for encrypt & encrypt.

Regards,

Praveer.

Juwin
Active Contributor
0 Kudos

Please check SAP Note: 1456433 - XML Signature and Encryption API for ABAP


Although this note talks about XML files, there are methods in the class CL_SEC_SXML_XENCRYPTION, to encrypt anything.


Thanks,

Juwin