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: 

Encryption in ABAP using AES 128 Bit BASE 64 Encoding

SM2022
Discoverer

Hi Experts,

We have a requirement to encrypt data using AES algorithm and Encoding BASE64 using a AES key in ABAP. This key will be shared by a third party vendor. We have tried to use class CL_SEC_SXML_WRITER to do the same.

First we encrypt the the data(XSTRING), key(xstring) using Encrypt method. The output is in XSTRING format.

When the output is encoded in BASE64 format, the output is not correct.

Can someone guide if we are missing something?

6 REPLIES 6

sourav2117
Participant
0 Kudos

have you solved it

amansrivastava
Explorer
0 Kudos

Hi,

we have a similar requirement to encrypt the file with an AES key shared by the client. Did you get any solutions for this; Please share.

Thanks,

Aman

jerryjanda
Community Manager
Community Manager
0 Kudos

Hi, amansrivastava:

While we're happy that you've come to SAP Community to get an answer to your question, you posted your question as an answer in a thread from 5 years ago.

I've converted your answer to a comment, but even so -- posting in older threads is not the best way to get guidance.

If you're looking for help, you should ask a new question: https://answers.sap.com/questions/ask.html.

Here are some tips to help you craft an effective question for our community: https://community.sap.com/resources/questions-and-answers, https://developers.sap.com/tutorials/community-qa.html.

I encourage you to follow this guidance, as I'd really like to see you get a solution to your problem.

I hope you find this advice useful!

All the best,

--Jerry

Make sure to subscribe to What's New!

0 Kudos

Hello mohantysonali,

did you find the solution because I have the same problem ?

SM2022
Discoverer
0 Kudos

Hi Arka,

Please check Git hub. https://github.com/Sumu-Ning/AES

You may get an idea. In our case we did it differently using some Linux Command passing the string and reciving the result

0 Kudos

Hi mohantysonali,

thank you for information but that doesn't work with public key.