cancel
Showing results for 
Search instead for 
Did you mean: 

How to encrypt text in C4C

Former Member
1,190

Hi all.

I need some help.

I have a requirement where i need to encrypt a text field by using md5.

Can i achieve this?

Best regards.

Qiang

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member634114
Participant
0 Kudos

Hello everyone,

Marlos,

Did you ever get it to work?

Thanks

. Fernando.

christinesmith82
Explorer
0 Kudos

Hello guys,

I am still trying to figure out how to use this hash function. What should the Secretkey value be?

Marlos, did you ever get it to work?

Thanks

Christine

Former Member
0 Kudos

Hi Marlos,

The syntax i mentioned in above was correct, You need to request SAP to enable Hash method from their end on the tenant which you are trying to use Hash method, Then it will work.

Regards,

Koti.

Former Member
0 Kudos

Hi qiang zeng,

You have any update on below function how to use.

Hash.EncryptString();

From my understanding we should pass parameters in this format.

EncryptedString = Hash.EncryptString("AES128", StringToBeEncrypted, Secretkey);

If you know about this function update here.

Regards,

Koteswara Reddy.

Former Member
0 Kudos

Hi Koteswara,

Sorry I still do not konw how to use the function Hash.EncryptString()

Qiang

Former Member
0 Kudos

Hi,

Thanks for your response, Issue was resolved.

Regards,

Kreddy.

marlosdamasceno
Participant
0 Kudos

Hi there,

Does Hash.EncryptString actually works? I have tried many combinations of keys and names for the algorithm, like "AES128", "AES128CBC", "AES256".... However, with no success, all of them the returns an empty Binary object.

kreddy12. could you please share an example of how you have manage it?

Best regards,

Marlos Damasceno