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
David Zhu 8David Zhu 8 

RSA asymmetric encryption in apex code

Hi All,
I have a application requires using asymmetric cryptography to encrypt/decrypt messages in Apex code. Salesforce currently has not built in functions for that.
I have no experiece with encryption. Can someone shed some light how to implement that? or if there is salesforce App could be used?

Thanks,
David
bainesybainesy
There's a crypto library that can handle this for you:
https://developer.salesforce.com/page/Apex_Crypto_Class
 
David Zhu 8David Zhu 8
Salesforce only supports symmetric encryption, no built-in asymmetric encryption is available.