+ 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