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

Decrypting S/MIME data using ABAP

Former Member
0 Likes
754

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
640

see if this fm is of any use:

WWW_GET_MIME_OBJECT

Regards,

ravi

3 REPLIES 3
Read only

Former Member
0 Likes
641

see if this fm is of any use:

WWW_GET_MIME_OBJECT

Regards,

ravi

Read only

Former Member
0 Likes
640

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.

Read only

Former Member
0 Likes
640

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.