Meaningless Drivel is fun!*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "how to encode the password in database ?" Watch "how to encode the password in database ?" New topic

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

Joined: Mar 06, 2001
Posts: 13459

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.

I agree. Here's the link:
subject: how to encode the password in database ?
Similar Threads
Issue in using the DatabaseServerLoginModule for encrypting the password using MD5
java code to keep password in ******** format in database(sql server)
How to insert password in an encrypted form into a table
APOP .. ?