This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes JSP and the fly likes Encryption in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Encryption in JSP" Watch "Encryption in JSP" New topic

Encryption in JSP

Manoj Paul
Ranch Hand

Joined: Jan 18, 2007
Posts: 112
Hello everyone...

I have a textbox and a submit button in my jsp page. when i click on the submit button What i want is that the data in the textbox must be entered in my database in encryption format so that even i wont be able to read it when i open the database.. Can anyone please help me.. Can anyone please send me the code for this page..
All my good wishes :thumb:
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63872

This cannot be done on the page. It will need to be performed in the servlet to which the data is submitted.

You might want to look into an MD5 hash or other encryption means.

Note, encryption is not a JSP subject.

[Asking smart questions] [About Bear] [Books by Bear]
Manoj Paul
Ranch Hand

Joined: Jan 18, 2007
Posts: 112
Thank you friend..
Its gave me a better idea now..
Can you please send me a dummy code for this.
Thank you
Milan Jagatiya
Ranch Hand

Joined: Jan 01, 2007
Posts: 164
Bear is correct......perform encryption and decryption task in servlet...
try below class for encryption and decryption...

[ February 26, 2007: Message edited by: Milan Jagatiya ]

Milan.<br />I can because I think I can...
I agree. Here's the link:
subject: Encryption in JSP
It's not a secret anymore!