Can anyone elaborate on the crypt() funtion, the manual is kind of vauge. I just want to hide the users passwords in the DB for now.
I send this to the database from a (submition form)
Code: Select all
if ($password = $confirm_password){
$password = crypt($password);
}Code: Select all
INSERT INTO.... (password) Values ('$password') bla..bla..
the password is stored encrypted. Fine.Now on the update login form
I have always used
Code: Select all
UPDATE.....WHERE password = $password$password = crypt($password); before UPDATE.....WHERE password = $password but the encryption changed (no match, I should have seen that coming). How exactly can I use crypt() to compare the passwords?
And what the Hell is salt? I know I can read a book on encryption, but PhP has already taken over my life! There's no room left right now! I'll get to encryption later. I have to keep on movin, or I never finish this. You know, I wish there was a way to get paid for doin this. You have to love the insanity. It's like a drug, only more addicting.....
Thanks for the help.
Code: Select all