• deepakpi
  • NEWBIE
  • 0 Points
  • Member since 2010

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies

Hi,

 

When I use below code I am getting internal server error.

 

 

String hexkey='CE993A13754340D1FED14A9EFB4A058D'; // given by 3rd part app developer

Blob b=Blob.valueOf(hexkey);

Blob encryptedBlob=Crypto.encryptWithManagedIV('AES128', b, 'some clear text' );

 

Did anybody face similar issue before?

 

Thanks,

Deepak

 

Apex provides supports for convert String to Hex value but not the Hex value to String. Can you help me on this.

 

Thank you