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
Muni12345Muni12345 

What does mean by " Blob key = Blob.valueOf('Wr/wa0vAe9RNmiMr');"

Hi,

Actually i found " Blob key = Blob.valueOf('Wr/wa0vAe9RNmiMr');", This piece of code in my existing code, Which already developed.

Could you please any one let me know, What is exactly meaning of this.

Thanks,
Muni

 
NagendraNagendra (Salesforce Developers) 
Hi Muni,

The following lines of code will make these functions a lot more clear to you.
Blob presetIV = Blob.valueOf('Example of IV123'); Blob key = Crypto.generateAesKey(128); // Generate the data to be encrypted. Blob data = Blob.valueOf('Data to be encrypted'); Blob encrypted = Crypto.encrypt('AES128', key, presetIV, data);
May I also suggest you please check crypto class in below link which might be really helpful for you. Please mark this as solved if the information helps so that it gets removed from the unanswered queue which results in helping others who are encountering a similar issue.

Best Regards,
Nagendra.