Encryption method that works both in ABAP and PHP?

Is there is any encryption function that work in SAP and PHP, of course except using BASE64 encode-decode method.
The scenario is
- ABAP encrypt string with key.
- The string send to PHP.
- PHP decrypt the string using key.
Thank you very much for any advise.
Answer
Solution:
Base64 doesn't an encryption method. @Dirk shared a blog post, which has information aboutcl_sec_sxml_writer
class.
If your system hasn't got this class you can use AES library. It has more capable thancl_sec_sxml_writer
class. You can use ECB, CBC, PCBC, CFB, OFB, CTR encryption modes and None, PKCS #5, PKCS #7 padding standarts.
Another option is usingSSF_KRN_ENVELOPE
function for encrypt. It use RSA standart so result may be huge for ofen trasfers. It is using server certificate for encryption, you an check certificate inSTRUST
t-code. You checkSSF01
demo program.
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: mark bundle as not supporting multiuse
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.