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 a string ?

Former Member
0 Likes
2,945


hi

i have a WebDynpro url which i have a parameter in it

http://us7211.wdf.sap.corp:50021/sap/bc/webdynpro/sap/othello?p_parameter=123123.

i want to prevent the user to edit the value and might get different data, ao i want to encrypt the value '123123' so the user will get some thing like that   

http://us7211.wdf.sap.corp:50021/sap/bc/webdynpro/sap/othello?p_parameter=az%wl

and in the winint method the value will be dncrypt to 123123 again.

is there a method/FM that can ENCRYPT and DNCRYPT a string?

thanks

Elad

8 REPLIES 8
Read only

Former Member
0 Likes
1,780

Take a look at class: CL_HTTP_UTILITY->encode_utf8

Good luck

Read only

0 Likes
1,780

Encoding != Encrypting

Read only

0 Likes
1,780

Sorry I did not want to imply Encoding = Encrypting.


Encoding simply might help him to overcome this issue.

Read only

rahul_mb
Active Participant
0 Likes
1,780

Hi Elad,

Please have a look at Webdynpro expert Thomas Jung's reply in this SCN thread:

Regards,

Rahul Muraleedharan.

Read only

ThangaPrakash
Active Contributor
0 Likes
1,780

Hello Elad,

Use the below Function modules.

FIEB_PASSWORD_ENCRYPT

FIEB_PASSWORD_DECRYPT

OFX_ALS_PASSWORD_ENCRYPT

UIPW_ENCRYPT

UIPW_DECRYPT

Regards,

Thanga

Read only

Former Member
0 Likes
1,780

Hi ,

Use below method's for Encrypt and Decrypt the Text .

CL_HTTP_UTILITY=>IF_HTTP_UTILITY~ENCODE_BASE64      ( Encrypt the text )

CL_HTTP_UTILITY=>IF_HTTP_UTILITY~DECODE_BASE64      (  Decrypt the encrypted text )

Sample Reference :

Regard's

-SRM

Read only

0 Likes
1,780

Encoding != Encrypting

Read only

Former Member
0 Likes
1,780

Hi Elad,

You can refer FM 'HTTP_SCRAMBLE'.. for encrypting the string. The String is encrypted using depending on the Source (Character string), Source length (String length) and Key..

Please let me know if this is of any use.

Thanks in Advance.

Regards,

Rajesh