Avatar

Level 2

Hi Saikat.

Thanks for your response.

Client wanted the encryption on the client-side as part of security. I did something like this:

      document.controller.setValue('/ctx/vars/memberId', '<%= cryptString("123456789")%>');

where I passed a hardcoded value and this works.

Is there no way that I can pass a variable inside cryptString? If it's not possible, is there other way to pass encrypted values from client side and decrypt it to server side? Or I just have to use third party encryption and decryption?