Are the password fields always case-sensitive? Because sometimes the username field are not.
Does this depend from the programming or from the Database field type?
Thanks
Password Fields
Started by TcM, Dec 21 2007 06:01 AM
2 replies to this topic
#1
Posted 21 December 2007 - 06:01 AM
|
|
|
#2
Posted 24 December 2007 - 07:45 AM
This depends on how the registration page is coded.
For instance, when i make a php login form it is never case sensitive, because i always call the strtolower function.
ALSO, the password should NEVER be stored in a database, only the encripted version, here is what i use both on the registration page, and the login page
$password is the input from the login/registration form
$hash is a random hash code
$pass is the encripted password is encrypted it is already in all lower case no matter what the user inputs into the form.
Does this help at all?
For instance, when i make a php login form it is never case sensitive, because i always call the strtolower function.
ALSO, the password should NEVER be stored in a database, only the encripted version, here is what i use both on the registration page, and the login page
$password = htmlspecialchars(addslashes($_REQUEST[password])); $hash = "_24+(c"; $pass = md5(md5(strtolower($password)+$hash)+$hash);
$password is the input from the login/registration form
$hash is a random hash code
$pass is the encripted password is encrypted it is already in all lower case no matter what the user inputs into the form.
Does this help at all?
~Aristotle said:
It is the mark of an educated mind to entertain a tought without accepting it
#3
Posted 29 December 2007 - 06:26 PM
Yes. Thanks for your help.


Sign In
Create Account


Back to top









