function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Nishant Bansal 31Nishant Bansal 31 

How to do RSA encryption(OAEP Padding) using public key

I am integrating with some tools and I have to create the signature using RSA encryption(OAEP Padding) using the public key to send them for authentication but not able to do it as salesforce has a crypto class with the private key.

Is there any method by which I can achieve this?
Alexander Zaytsev 1Alexander Zaytsev 1
Did you ever find a solution?
Saswato ChatterjeeSaswato Chatterjee
One of the best ways to experiment is by building a site and test it. Example: GSRTC Timetable info (https://www.gsrtctimetable.in)
I have also done some testing on one of my other site: CDN Times Info (https://www.cdntimes.in)