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

HTTP_SCRAMBLE

Former Member
0 Likes
4,389

Hi all,

The function module as far as my knowledge is used for password encryption.

Can anyone explain me how I will pass parameters to the FM so that the pass word is encrypted

Pls explain me by code or tel how to write code for password so that it is not hard coded.

With regards,

Abir.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,694

HI

GOOD

GO THROUGH THESE DOCUMENTS

THANKS

MRUTYUN

4 REPLIES 4
Read only

Former Member
0 Likes
1,695

HI

GOOD

GO THROUGH THESE DOCUMENTS

THANKS

MRUTYUN

Read only

Former Member
0 Likes
1,694

I don't know what this FM does, but this function modules may be helpful to you:

FIEB_PASSWORD_ENCRYPT

and FIEB_PASSWORD_DECRYPT

Eg:

Data enpwd(32) type c.

parameter pwd like enpwd .

                • Encrypting *******************

CALL FUNCTION 'FIEB_PASSWORD_ENCRYPT'

EXPORTING

IM_DECRYPTED_PASSWORD = pwd

IMPORTING

EX_ENCRYPTED_PASSWORD = enpwd

.

                • Decrypting *******************

CALL FUNCTION 'FIEB_PASSWORD_DECRYPT'

EXPORTING

IM_ENCRYPTED_PASSWORD = enpwd

IMPORTING

EX_DECRYPTED_PASSWORD = pwd

Regards,

Ravi

Read only

Former Member
0 Likes
1,694

Hi,

it is not used to encrypt as such.

any way check this and also check this Standard Program

<b>RSFTP003</b> for the usage of the same

slen = strlen( pwd ).

call function 'HTTP_SCRAMBLE'
  exporting
    source      = pwd
    sourcelen   = slen
    key         = key
  importing
    destination = pwd.

regards

vijay

Read only

Former Member
0 Likes
1,694

Hi ABir,

you can also use this instead of HTTP_SCRANMBLE FM.

DESCRIBE FIELD PWD LENGTH DSTLEN.

  CALL 'AB_RFC_X_SCRAMBLE_STRING'
    ID 'SOURCE'      FIELD PWD    ID 'KEY'         FIELD KEY
    ID 'SCR'         FIELD 'X'    ID 'DESTINATION' FIELD PWD
    ID 'DSTLEN'      FIELD DSTLEN.

both are same.Before connecting to FTP, you will call this .

Regards

vijay