php - sha1(password) encryption -


OK, so I have my users ". Sha1 ($ _ POST ['password'])." When they register, when entering their password it works well by looking at the database, I have no indication what their password is.

Now the problem is entering. I am running some tests and when I try to log in, the password 12345 has not been matched with an encrypted password using $ password = sha1 ($ _ POST ['mypassword'])

Any ideas why?

Repeat the password column size on your database ... make sure it is holding the full sha1 hash (Varchar (40))

When password hashing, what is the value of the raw_output parameter? If true, then your return is a 20-character binary string; If false, this is a 40-character ASCII string. Make sure that you can store a binary value on the database if changed to use before, or after.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -