RSA Encryption required to encrypt sting field value

Community Alums
Not applicable

We have been given an RSA public key and we need to encrypt a given string field value using RSA encryption before passing it on to the tool using POST.

1 ACCEPTED SOLUTION

Community Alums
Not applicable

I have done it by using JSEncrypt. If anyone is interested to know how I have done it, Please feel free to comment or reach out.

 

Regards,

Varun

View solution in original post

8 REPLIES 8

Community Alums
Not applicable

JSEncrypt code won't work in script include since it is a front end script.

 

You need to create a new UI script and copy the JSEncrypt code in it.

varunngupta_0-1699375411402.png

 

Oh. UI script. Okay. I will try it. Thanks!

Hey Varunn,

Can you share the UI Script code and how you called this code in your script with keys to encrypt and decrypt?

 

Thanks

It is scoped. but Global is also good.