Question Locked

Password Encryption techniques

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am trying to encrypt the password to store in mysql database. I tried the following:

$pass=$_POST['password'];
$pass=md5($pass);

then I inserted the $pass in database table.

But, it doesn't let me log in using the same password.

When I check the database table, it is stored in encrypted form which is obvious, isn't it?

What may be the problem? is it because of MySQL Version? or ?????????

1 reply

This discussion is closed to new replies.