• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Encryption in JSP

 
Manoj Paul
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64958
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Manoj Paul
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic