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

RSA Algorithm implementation for encryption in SAP ECC

sourav2117
Participant
0 Likes
883

Hi All,

I have requirement of encrypting password using RSA Algorithm using public key provided with X.509 Certificate and send it as json format to external application.

The public key is too long more than 500 characters and i have to encypt password using public key .

Anyone can help me out , i have used HTTP_SCRAMBLE,l_sec_sxml_writer=>encrypt.

I am certainly facing in creating a key and storing in sap abap field of type string.

demo key value :

MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AM4IBCgKCAQEArxd93uLDes8HTPqcSPpxZ5476788f9r3i8yiuuth78ihjtjAyeX4RAH6lWm9qFt26CcE8ESYtmo1sVtswvs7VH4Bjg/FDlRpd+MnAlXuxChij8/vjyAwE71ucMrmZh645y6h78fniZ8trr3I4R2o4xWh6no/xTUtZ02/yUEXbphw3DEuefzHEQnEF+quGji9pvGnPO6Krmnri9H4WPY0ysreQQQd82bUZCk9XdhSZcW/am8wBulYokITRMVHlbRXqu1pOFmQMO5oSpyZU3pXbsx+OxIOc4EDX0WMa9aH4+snt18WAXVGwF2B4fmBk7AtmkFzrTmbpmyVqA3KO2IjzMZPw0hQIDAQAB'.

Thanks in Advance

0 REPLIES 0