‎2008 Dec 08 9:40 AM
hi,
in this code
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
.
********* Output **********************
WRITE:/ 'Encrypt data ', ENPWD,
/ 'Decrypt data ', PWD.
i am not able to get my input in write statement....
i mean i am not able to decrypt my encripted value please reply....
with regrads
janani
‎2008 Dec 08 10:56 AM
hi,
Use this:
call function 'HTTP_SCRAMBLE'
exporting
source = ppwd
sourcelen = v_slen
key = v_key
importing
destination = v_encrypted_pwd.
Or do one thing pass some value after declaring your variable.
.Hope it helps.
Rahul
Edited by: Rahul Kumar Sinha on Dec 8, 2008 12:00 PM
‎2008 Dec 08 10:25 AM
HI
you have declared the variable and have not passed any value .
1.after declaration , pwd = '12345'.(eg , some value'.)
2.******** Encrypting *******************
CALL FUNCTION 'FIEB_PASSWORD_ENCRYPT'
EXPORTING
IM_DECRYPTED_PASSWORD = PWD
IMPORTING
EX_ENCRYPTED_PASSWORD = ENPWD
.
3. now ENPWD will have some value.
4.******** Decrypting *******************
CALL FUNCTION 'FIEB_PASSWORD_DECRYPT'
EXPORTING
IM_ENCRYPTED_PASSWORD = ENPWD
IMPORTING
EX_DECRYPTED_PASSWORD = PWD
.
5.********* Output **********************
WRITE:/ 'Encrypt data ', ENPWD,
/ 'Decrypt data ', PWD.
now pwd and enpwd will contain some value.
or the fm does not fetches the value.
regards,
Ramya
‎2008 Dec 08 10:48 AM
Check this for more info @ these function modules.
http://www.sap-img.com/abap/function-module-for-encryption-and-decryption.htm
‎2008 Dec 08 10:56 AM
hi,
Use this:
call function 'HTTP_SCRAMBLE'
exporting
source = ppwd
sourcelen = v_slen
key = v_key
importing
destination = v_encrypted_pwd.
Or do one thing pass some value after declaring your variable.
.Hope it helps.
Rahul
Edited by: Rahul Kumar Sinha on Dec 8, 2008 12:00 PM