Need to do client side encryption/decryption
843811Jul 25 2007 — edited Aug 22 2007I am developing a web application in jsp, servlets and database.
I have a registrationform.jsp which takes details like name, address etc.
On submitting this form, server validates the user entered information and if everything is correct, then sends him an ID(a number in encrypted format). But client has to see the actual data instead of encrypted value i.e., on receiving response from server, before getting displayed on browser, client side decryption should be done and actual data should get displayed.
I am using RSA public/private key pairs to do encryption and decryption. I am successful on server encryption and decryption. But I am not sure how to do encryption and decryption on client side.
I need the solution as early as possible.
Please provide the solution and also provide any useful links or resources that I can follow.
Thanks