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

encripting

Former Member
0 Likes
642

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
599

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

3 REPLIES 3
Read only

Former Member
0 Likes
599

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

Read only

Former Member
0 Likes
599

Check this for more info @ these function modules.

http://www.sap-img.com/abap/function-module-for-encryption-and-decryption.htm

Read only

Former Member
0 Likes
600

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