Homec4science

Change password_hash() algorithm from CRYPT_BLOWFISH to PASSWORD_BCRYPT.

Authored by Wenyu Zhang <hearson@gmail.com> on Apr 18 2014, 22:38.

Description

Change password_hash() algorithm from CRYPT_BLOWFISH to PASSWORD_BCRYPT.

Summary:
PHP 5.5 specifies constant PASSWORD_BCRYPT should be used in password_hash()
instead of CRYPT_BLOWFISH. Using CRYPT_BLOWFISH is not supported in either PHP
or HHVM. This constant breaks Username / Password authentication.

Test Plan:
Login using Username/Password with bcrypt hash. Before applying the patch,
No matter what password entered, it will always fail authentication. After this
patch, user should be able to login with bcrypt hash.

Reviewers: btrahan, epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D8808

Details

Committed
epriestley <git@epriestley.com>Apr 18 2014, 22:38
Pushed
aubortJan 31 2017, 17:16
Parents
rPH35df988036f7: Use standard UI elements to render pull requests in Releeph
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHba956711a56b: Change password_hash() algorithm from CRYPT_BLOWFISH to PASSWORD_BCRYPT. (authored by Wenyu Zhang <hearson@gmail.com>).Apr 18 2014, 22:38