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.
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.