2020 Sep 16 12:02 PM
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.
2020 Sep 16 1:18 PM
2020 Sep 17 6:46 AM
Hi Dominik,
Thanks for your reply. This blog discuss about CBC encryption.
I am looking for AES256/ECB encryption.
Regards,
Brenna.
2020 Sep 17 3:04 PM
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
2020 Sep 17 3:14 PM
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 🙂
2020 Sep 18 11:21 AM
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.
2020 Sep 18 11:33 AM
2020 Sep 21 1:33 PM
Hi Dominik
Sure. Will let you know the outcome once I crack it.
Regards,
Brenna