Application Development and Automation 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: 
Read only

How to encrypt/decrypt output file using ABAP coding ?

Former Member
0 Likes
3,704

Dear All,

I need to encrypt/decrypt output file using ABAP coding.

I will store that file into local folder (PC).

Caused of security reason, I need to encrypt/decrypt too that file (for example).

How to make it possible ?

Thnx for help !

Regards,

(Taufik K.)

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,423

Hi,

Please refer the following thread :

Best regards,

Prashant

9 REPLIES 9
Read only

Former Member
0 Likes
1,424

Hi,

Please refer the following thread :

Best regards,

Prashant

Read only

0 Likes
1,423

Thanks a lot for your info.

By the way, the function/method you give to me is how to encode/decode content.

What I want is to encrypt output file not content.

For example, from ABAP, calling Function or external software/DOS command or whatever possible then automatically they encode my file with specify password and new file format (example '.uue' for WINZIP, '.enc' etc).

TQ - Regards,

(Taufik K.)

Read only

0 Likes
1,423

Hi Taufik,

This may not be the exact answer for your question. Maybe you can consider to compress your file and the file name you can put as *.zip.

have a look into this command:

To compress:

OPEN DATASET dsn FOR OUTPUT FILTER 'compress'

IN TEXT MODE ENCODING DEFAULT.

To uncompress:

OPEN DATASET dsn FOR INPUT FILTER 'uncompress'

IN TEXT MODE ENCODING DEFAULT.

Hope it helps.

Read only

0 Likes
1,423

Thanks FSCHU for your advice.

Actually I want to send my file (with password, encrypted) directly using storage/diskette without sending my file into application server.

TQ - Regards,

(Taufik K.)

Read only

0 Likes
1,423

have you seen this class

CL_HARD_WIRED_ENCRYPTOR

i havent used it, but i guess this should help

Regards

Raja

Read only

Former Member
0 Likes
1,423

Hi,

And you can see this thread too:

.

Regards,

Read only

0 Likes
1,423

Thanks a lot for your info.

By the way, the function/method you give to me is how to encode/decode content.

What I want is to encrypt output file not content.

For example, from ABAP, calling Function or external software/DOS command or whatever possible then automatically they encode my file with specify password and new file format (example '.uue' for WINZIP, '.enc' etc).

TQ - Regards,

(Taufik K.)

Read only

Former Member
0 Likes
1,423

Hi Taufik

You can use method ENCRYPT_STRING2STRING in class CL_HARD_WIRED_ENCRYPTOR.

Regards

Dhananjay

Read only

0 Likes
1,423

This class (CL_HARD_WIRED_ENCRYPTOR) is not very secure. Make sure you are comfortable with the very week encryption it provides.

regards,

Nigel