wood burning stoves 2.0*
The moose likes JDBC and the fly likes saving password in MYSQL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "saving password in MYSQL" Watch "saving password in MYSQL" New topic

saving password in MYSQL

prakash chauhan
Ranch Hand

Joined: Jun 22, 2007
Posts: 81
Hi All,
how do we save passwords in MySQL, i dont want passwords to appear as they are in the database for anybody to see , how is it achieved?

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60749

A common tactic is to convert the password using a one-way hash like MD5 or SHA.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
It is sorta covered in the JavaRanch Style Guide.
subject: saving password in MYSQL
Similar Threads
mysql encrypt()
Tell me one (Handy) DataBase for Java ?
CMP Entity Bean -> Encrypted Column Type ?
Username and Passwords
Tomcat Realm DES encrypted passwords