2006 Jul 03 2:53 PM
Hi ,
I am working in BSPs. I get S/MIME encrypted data from a web service . Can anybody please tell me how to decrypt this data using ABAP code. Are there any standard ABAP classes available for decrypting the S/MIME data.
Thanks in advance ,
Regards,
Laxman Nayak.
2006 Jul 03 3:03 PM
2006 Jul 03 3:03 PM
2006 Jul 03 3:04 PM
Hi Laxman,
Consider this code. It uses <b>cl_http_utility</b>.
Just execute this code in SE38.
REPORT zarun_pass .
PARAMETERS : pass(32) TYPE c.
DATA : passwd TYPE string,
encoded TYPE string,
decoded TYPE string.
passwd = pass.
CONDENSE passwd.
CALL METHOD cl_http_utility=>if_http_utility~encode_base64 "Method for Encryption
EXPORTING
unencoded = passwd
RECEIVING
encoded = encoded.
CALL METHOD cl_http_utility=>if_http_utility~decode_base64 "Method for Decryption
EXPORTING
encoded = encoded
RECEIVING
decoded = decoded.
WRITE : / 'Password Entered :' , pass,
/ 'Encrypted Password :' , encoded,
/ 'Decrypted Password :' , decoded.
Regards,
Arun Sambargi.
2006 Jul 03 3:24 PM
Hi Arun Sambargi,
Thanks a lot for the reply. I had already tried this . It is not working for me. Any other idea?
Regards,
Laxman Nayak.