We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Because of the bcrypt password encryption algoritm. It's default in PHP but Apache 2.2 does not support it.
https://httpd.apache.org/docs/2.2/misc/password_encryptions.html
Apache 2.4 does support it.
If you want this to work for Apache 2.2 Change \vendor\rafaelgou\php-apache2-basic-auth\src\Apache2BasicAuth\Model\User.php:83
from:
$this->setHash(password_hash($password, PASSWORD_BCRYPT));
to:
$this->setHash(crypt($password, '$1$'.bin2hex(random_bytes(4)).'$'));
It will now use the less secure MD5 algo, but at least it works.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Because of the bcrypt password encryption algoritm. It's default in PHP but Apache 2.2 does not support it.
https://httpd.apache.org/docs/2.2/misc/password_encryptions.html
Apache 2.4 does support it.
If you want this to work for Apache 2.2
Change \vendor\rafaelgou\php-apache2-basic-auth\src\Apache2BasicAuth\Model\User.php:83
from:
$this->setHash(password_hash($password, PASSWORD_BCRYPT));
to:
$this->setHash(crypt($password, '$1$'.bin2hex(random_bytes(4)).'$'));
It will now use the less secure MD5 algo, but at least it works.
The text was updated successfully, but these errors were encountered: