File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes how to encode the password in database ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "how to encode the password in database ?" Watch "how to encode the password in database ?" New topic
Author

how to encode the password in database ?

benny rusli
Ranch Hand

Joined: Jan 15, 2005
Posts: 72
Hello people,

in my project, i am trying to encode the password using md5(MessageDigest) before inserting the password into db. This approach happens in the registration.jsp. The code that i made, shown like this :




Is this approach, that is normally used in common jsp page. I am wondering if someone could tell me another approach to aid a maximal security result. Any help will be appreciated.
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

"brusli",
We're a friendly bunch here at the Ranch, but we take display names very seriously.

Your display name was valid, now it is not. Please change it back immediately or your account will be deleted.

thanks,
Dave.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to encode the password in database ?