‎2020 Mar 03 6:06 PM
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