Activity › Forums › Salesforce® Discussions › What is Apex crypto magnificence and the way to use it in salesforce?
Tagged: Apex Crypto Class, Salesforce Apex Class, Salesforce Development
What is Apex crypto class and the way to use it
Follow this hyperlink,it may assist you:
What is Apex Crypto Class?
The Apex Crypto class provides some of cryptographic features for developing digests, message authentication codes, and signatures, in addition to encrypting and decrypting information. This lets in you to encrypt or decrypt information in Force.com or combine with external offerings that require these capabilities.
How to use Apex Crypto Class in Salesforce?
The Crypto class gives the following features to encrypt and decrypt using the AES algorithm:
encrypt(algorithmName, privateKey, initializationVector, clearText)-Encrypts the Blob clearText using the specified algorithm, personal key, and initialization vector. Use this method while you want to specify your own initialization vector.
decrypt(algorithmName, privateKey, initializationVector, cipherText) – Decrypts the choices Blob cipherText the use of the required algorithm, non-public key, and initialization vector. Use this technique to decrypt blobs encrypted the use of a 3rd celebration utility or the choices encrypt technique.
encryptWithManagedIV(algorithmName, privateKey, clearText) -Encrypts the choices Blob clearText the use of the required algorithm and private key. Use this approach when you need Salesforce to generate the choices initialization vector for you.
decryptWithManagedIV(algorithmName, privateKey, IVAndCipherText) -Decrypts the Blob IVAndCipherText the usage of the desired algorithm and private key. Use this approach to decrypt blobs encrypted the use of a 3rd party software or the choices encryptWithManagedIV method.
Hope this could assist.
Source – Salesforce developer Guide.
Log In to answer.
Popular Salesforce Blogs
Salesforce is a famous CRM solution, and that’s everyday for all the blessings that it gives. It offers businesses a wide variety of tools that…
Best Practices for Salesforce Data Migration
Conducting facts migration from or into Salesforce can be time-consuming however a important undertaking. Data migration is a task for any company. You would possibly face…
Learn Salesforce Einstein – Chapter 6 (Create Dataset)
This page allows creating Dataset for Vision and Language Einstein. You can go to this web page with the aid of clicking on Create link on Dataset tab. Also,…
Popular Salesforce Videos
In this video, We’ll be studying approximately DML (Data Manipulation Language) in Salesforce development: We could be discussing the following matters in this video: 1.…
Salesforce Apex Rest API Integration
As you already know salesforce is an internet cloud answer, we might be required to integrate Salesforce with some other third celebration device. We have launched…
Tips to select Best Salesforce® Consulting Company
Start a New Discussion