mirror of
https://github.com/codeguy/php-the-right-way.git
synced 2025-08-25 14:30:47 +02:00
Merge branch 'gh-pages' of https://github.com/mkyaw/php-the-right-way into gh-pages
This commit is contained in:
@@ -8,8 +8,8 @@ anchor: password_hashing
|
||||
Eventually everyone builds a PHP application that relies on user login. Usernames and passwords are stored in a
|
||||
database and later used to authenticate users upon login.
|
||||
|
||||
It is important that you properly [_hash_][3] passwords before storing them. Password hashing is an irreversible, one
|
||||
way function performed against the user's password. This produces a fixed-length string that cannot be feasibly
|
||||
It is important that you properly [_hash_][3] passwords before storing them. Password hashing is an irreversible,
|
||||
one-way function performed against the user's password. This produces a fixed-length string that cannot be feasibly
|
||||
reversed. This means you can compare a hash against another to determine if they both came from the same source string,
|
||||
but you cannot determine the original string. If passwords are not hashed and your database is accessed by an
|
||||
unauthorized third-party, all user accounts are now compromised.
|
||||
|
Reference in New Issue
Block a user