php-general | 2001032
Date: 03/22/01
- Next message: Joe Rice: "Re: [PHP] Environment Variables"
- Previous message: Larry Hotchkiss: "[PHP] php 4.04pl 1-3 for red hat 7"
- In reply to: almir: "[PHP] LDAP problem"
- Next in thread: ..s.c.o.t.t.. [gts]: "RE: [PHP] Crypt problem"
- Reply: ..s.c.o.t.t.. [gts]: "RE: [PHP] Crypt problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
hello
I use crypt to crypt member's passwords and use the following verify
"$stored_password" is the encrypted, stored password.
"$password" is the plain text password you just got from the form.
## Check the passwords
$encrypted_password = crypt($password,$stored_password);
if ($encrypted_password = $stored_password) { $logged_in = 1; };
the problem I am having is that it is only comparing the first 8 characters
of the password
so if my password was randyrandy
i could get in with randyran
How do I fix this
the crypt password is stored in the database with enough room to store the
password so it isn't cutting it off when inserting to the database.
thanks
randy
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Joe Rice: "Re: [PHP] Environment Variables"
- Previous message: Larry Hotchkiss: "[PHP] php 4.04pl 1-3 for red hat 7"
- In reply to: almir: "[PHP] LDAP problem"
- Next in thread: ..s.c.o.t.t.. [gts]: "RE: [PHP] Crypt problem"
- Reply: ..s.c.o.t.t.. [gts]: "RE: [PHP] Crypt problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

