‎2006 Sep 20 2:56 AM
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.)
‎2006 Sep 20 3:07 AM
‎2006 Sep 20 3:07 AM
‎2006 Sep 20 4:27 AM
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.)
‎2006 Sep 20 4:32 AM
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.
‎2006 Sep 20 8:09 AM
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.)
‎2006 Sep 20 8:14 AM
have you seen this class
CL_HARD_WIRED_ENCRYPTOR
i havent used it, but i guess this should help
Regards
Raja
‎2006 Sep 20 3:12 AM
‎2006 Sep 20 4:26 AM
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.)
‎2006 Sep 20 9:09 AM
Hi Taufik
You can use method ENCRYPT_STRING2STRING in class CL_HARD_WIRED_ENCRYPTOR.
Regards
Dhananjay
‎2006 Nov 22 9:37 AM
This class (CL_HARD_WIRED_ENCRYPTOR) is not very secure. Make sure you are comfortable with the very week encryption it provides.
regards,
Nigel