‎2006 May 22 1:35 PM
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.
‎2006 May 22 1:41 PM
‎2006 May 22 1:41 PM
‎2006 May 22 1:42 PM
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
‎2006 May 22 1:42 PM
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
‎2006 May 22 1:51 PM
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