hey guys,
i have made a database which has two fields namely username and password.
Now when the user enters the password, i want that the password should be stored in encrypted form in the database so that the admin cannot see the password.
Please give some suggestions.

What server language are you using? If it's PHP, you could do something like this...

$password = $_REQUEST['password'];
$enc_password = md5($password);

... before storing it in the database. Note - MD5 is one way encryption, so to check whether a user has entered a correct password, you need to MD5 their entry and see if it matches the stored MD5 in the database.

Or you can use password('$password')

you can use this while inserting in database and then to compare the text entered by user

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.