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

Encryption through SAP

Former Member
0 Likes
883

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

7 REPLIES 7
Read only

former_member203501
Active Contributor
0 Likes
830

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.

Read only

0 Likes
830

That is encoding, not encryption.

Where are you copy&pasting this program from? Alone today, you have used it more than once!

Julius

Read only

0 Likes
830

Sorry for the above answer. Please ignore it .

Read only

Former Member
0 Likes
830

hi ,

welcome to sdn ,

plz check this link , i hope this will be useful.

make use of this class CL_ABAP_GZIP to compress the text format .

Br,

Vijay.

Read only

Former Member
0 Likes
830

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

Read only

Former Member
0 Likes
830

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

Read only

Former Member
0 Likes
830

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