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

HELP required in AES256/ECB/PKCS5Padding encryption

0 Likes
4,307

We have a requirement in SAP ABAP to call a web service from a webportal. From the webportal side ,they are using AES256/ECB/PKCS5Padding for encryption.But,we didn't get any thread or blog to encrypt and decrypt using AES256/ECB/PKCS5Padding in Sap Abap (we found that SAP is supporting CBC encryption and decryption using the class CL_SEC_SXML_WRITER but not ECB).


Could you please help us to find out how to implement AES256/ECB/PKCS5Padding in SAP ABAP.

We have a requirement in SAP ABAP to call a web service from a webportal. From the webportal side ,they are using AES256/ECB/PKCS5Padding for encryption.But,we didn't get any thread or blog to encrypt and decrypt using AES256/ECB/PKCS5Padding in Sap Abap (we found that SAP is supporting CBC encryption and decryption using the class CL_SEC_SXML_WRITER but not ECB).


Could you please help us to find out how to implement AES256/ECB/PKCS5Padding in SAP ABAP.

7 REPLIES 7
Read only

Dominik_Tylczynski
SAP Champion
SAP Champion
3,358

Hello brenna

Would that blog help AES Encryption in ABAP ?

Best regards

Dominik Tylczynski

Read only

0 Likes
3,358

Hi Dominik,

Thanks for your reply. This blog discuss about CBC encryption.
I am looking for AES256/ECB encryption.

Regards,
Brenna.

Read only

Dominik_Tylczynski
SAP Champion
SAP Champion
3,358

Hello brenna

Indeed cl_sec_sxml_writer doesn't seem to support ECB mode.

I've found the following:

AES algorithm implementation by ABAP

Encoding / Decoding base64Binary with AES-128ECB

Hope that helps. You might try to contact simone.milesi directly as it looks like he has cracked that.

Best regards

Dominik Tylczynski

Read only

3,358

Hi Dominik and brenna !
Yes, I managed to do it as i explained in the thread and, for what I know, it's still working 🙂
Sadly I've no more access to the system and forgot to save it, but it's all in the thread 🙂

Read only

3,358

Hi Dominik and simone.milesi,

Thanks for the prompt response. I am going through the blog and related programs.

Hope this will solve my problem.

Regards,
Brenna.

Read only

3,358

Hi brenna

Let's know the outcome and share your solution. Sharing is caring.

BR, Dominik Tylczynski

Read only

3,358

Hi Dominik

Sure. Will let you know the outcome once I crack it.

Regards,

Brenna