Hi Friends,
i saw the following code in a site. It is to encrypt and decrypt a password field. Can someone suggest where such a scenario arises tht uses these FMs. Also is there a way to display the text being typed masked as * ?
REPORT zpass .
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.
Regards,
ShabZ
Add a comment