mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
![]() PHP’s implementation of crypt_blowfish differs from the upstream Openwall
version by adding a “PHP Hack”, which allows one to cut short the BCrypt salt
by including a `$` character within the characters that represent the salt.
Hashes that are affected by the “PHP Hack” may erroneously validate any
password as valid when used with `password_verify` and when comparing the
return value of `crypt()` against the input.
The PHP Hack exists since the first version of PHP’s own crypt_blowfish
implementation that was added in
|
||
---|---|---|
.. | ||
bcrypt_invalid_algorithm.phpt | ||
bcrypt_invalid_cost.phpt | ||
bcrypt_salt_dollar.phpt | ||
des_fallback_invalid_salt.phpt |