How to encrypt salesforce data and send it through rest api to third party system?

I need some sample code to get started.

Thanks in advance.

1 Answer 1


Apex includes the Crypto class that:

Provides methods for creating digests, message authentication codes, and signatures, as well as encrypting and decrypting information.

In addition to all the sample calls in the docuemntation linked above there is also Using the Apex Crypto Class, which has further examples.

You could also browse other crypto question on this site.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .