Application Development 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: 

Decrypting S/MIME data using ABAP

Former Member
0 Kudos

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

former_member181962
Active Contributor
0 Kudos

see if this fm is of any use:

WWW_GET_MIME_OBJECT

Regards,

ravi

3 REPLIES 3

former_member181962
Active Contributor
0 Kudos

see if this fm is of any use:

WWW_GET_MIME_OBJECT

Regards,

ravi

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.