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
ManjunathManjunath 

EncodingUtil- Encode and Decode

Hi,

 

I have a string which I am decoding using base64Decode method, then am encoding it back using base64Encode. Then ultimately I should have the initial string, but in certain case its been truncated.

 

Any idea, why is this happening or am I missing here something?

 

Thanks.

Milan SanghaniMilan Sanghani

Hi Manjunath,

 

Salesforce provide crypto class security to storing secret to data. you can go to this link.

http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_restful_crypto.htm

 

Thanks, 

Milan