Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How encrypt password by javascript and decrypt encrypted password using jsp

843840Nov 12 2009 — edited Nov 16 2009
I am using "Hibernate ,JSP and Servelet" .


I want to encrypt the 'username and password' using JavaScript before sending it to jsp page and at server end I want to decrypt it using JSP/java.

Please help me with some sort of example code, as I am getting ssh1 JavaScript encrypting function on internet but not decryption java end function. As well SSH1 function is not getting clear to me. I am not getting how can this be possible without sending the encryption key to JSP and if i send the key with username and password then any one can get it and will decrypt it.

Edited by: Ashutosh.Kumar.Srivastava on Nov 12, 2009 10:48 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 14 2009
Added on Nov 12 2009
2 comments
1,211 views