Hello Everyone,
Okay, I am wondering what I am doing wrong. I was trying to use the php function crypt to due something like $encpswd = crypt($password). then store $encpswd in mysql database. However, when I try to login in it's not verifying the password. I understand that crypt() is a one-way encrption, but can't I do something to retrieve it?
I tried using md5 and sha1 both worked to encrypt the password, however, I can retrieve it, any idea's?
example of what I am doing...
$query = SELECT COUNT(*) FROM login where username = '$username' AND passw = md5('$pswd')";
Thanks,
imryn
Okay, I am wondering what I am doing wrong. I was trying to use the php function crypt to due something like $encpswd = crypt($password). then store $encpswd in mysql database. However, when I try to login in it's not verifying the password. I understand that crypt() is a one-way encrption, but can't I do something to retrieve it?
I tried using md5 and sha1 both worked to encrypt the password, however, I can retrieve it, any idea's?
example of what I am doing...
$query = SELECT COUNT(*) FROM login where username = '$username' AND passw = md5('$pswd')";
Thanks,
imryn