aspose file tools*
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
JavaRanch » Java Forums » Java » JSP
Bookmark "Encryption in JSP" Watch "Encryption in JSP" New topic
Author

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
Marshal

Joined: Jan 10, 2002
Posts: 61206
    
  66

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] [Bear's FrontMan] [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: http://aspose.com/file-tools
 
subject: Encryption in JSP