‎2009 Apr 04 12:15 PM
Dear Friends,
I have developed one program which generate Text File on /interface folder on the root.
Because of Security reason, I want to encrypt that text file through my program.
Can anyone suggest me the best solution for this.
Regards,
Mukul
‎2009 Apr 04 12:39 PM
please look at this program for encription and decreption.....
REPORT zencript .
PARAMETERS : p_pass TYPE sy-uname.
DATA : l_password TYPE string,
l_encoded TYPE string,
l_decoded TYPE string.
l_password = p_pass.
CONDENSE l_password.
CALL METHOD cl_http_utility=>if_http_utility~encode_base64 "Method for Encryption
EXPORTING
unencoded = l_password
RECEIVING
encoded = l_encoded.
CALL METHOD cl_http_utility=>if_http_utility~decode_base64 "Method for Decryption
EXPORTING
encoded = l_encoded
RECEIVING
decoded = l_decoded.
WRITE : / 'Password Entered :' , p_pass,
/ 'Encrypted Password :' , l_encoded,
/ 'Decrypted Password :' , l_decoded.
‎2009 Apr 04 2:54 PM
That is encoding, not encryption.
Where are you copy&pasting this program from? Alone today, you have used it more than once!
Julius
‎2009 Apr 04 4:13 PM
‎2009 Apr 04 5:38 PM
‎2009 Apr 05 10:04 AM
Hi,
Try the following FMs
FIEB_PASSWORD_ENCRYPT
FIEB_PASSWORD_DECRYPYT
HTTP_SCRAMBLE
DP_SCRAMBLE_STRING
SCRAMBLE_STRING
AB_RFC_X_SCRAMBLE_STRING
Thanks.
Babu Kilari
‎2009 Apr 05 12:03 PM
Hi Mukul,
I am not sure if SAP provides any way to encrypt the file.
Here are the ones I never treid.
[Link1|http://www.saptechies.com/function-module-for-encryption-and-decryption/] [Link2|http://www.sap-img.com/abap/function-module-for-encryption-and-decryption.htm]
Techinically It all depends on which algo we will reqire to use to achive this.
If its not that much sensitive data then probalby you could play with the internal table record by record to achive the encryption by playing some ABAP tricks.
The another more reliant way could be to have some application installed on application server and figure out way to call it from ABAP. Get in touch with Basis guys they should help you out.
Regards
Shital
‎2009 Apr 05 10:18 PM
u can use FIEB_PASSWORD_ENCRYPT
FIEB_PASSWORD_DECRYPYT
But I guess the above said FM needs some correction, Please apply the respective OSS Or copy the FM and change particulra line where it will ask for LENGTH of a string .
Br,
Parthi