wiki.techinc.nl/includes/password
Kevin Israel 71f27d46f1 password: Remove automatic fallback to hash_pbkdf2()
The criteria for doing so have now been met:

* PHP 8.1+ is now the documented minimum, and the 1.42 branch already
  enforces this in PHPVersionCheck. (T359868)
* OpenSSL support is also now required. (e4127e5864)

As stated in AbstractPbkdf2Password::canUseOpenSSL(), the version check
is no longer needed because PHP 8.1 requires OpenSSL >= 1.0.2. While the
the master branch may still work on PHP 7.4 for now, it is unlikely that
a site using it would still have a version of OpenSSL older than 1.0.1f.
(For example, WMF stopped using Ubuntu 14.04 "Trusty", which has exactly
that minimum version of OpenSSL, once Canonical started charging for
security updates in 2019.)

The reasons for the version check were:

* Old versions of OpenSSL appeared to perform at least as well as PHP
  for reasonably long passwords (up to 128 bytes for SHA-512 hashes);
  however, they had the same DoS issue that our own implementation for
  PHP 5.3 had (see T64685). hash_pbkdf2() never had that problem.

* If PHP were to incorporate the major optimization of hashing the HMAC
  key blocks only once, then the old OpenSSL versions would actually be
  slower. So far, this has not happened.

Change-Id: I47eb1aabf3d0ae4792624f9ba1c392880d52d0b7
2024-06-08 01:06:22 -04:00
..
Hook
AbstractPbkdf2Password.php password: Remove automatic fallback to hash_pbkdf2() 2024-06-08 01:06:22 -04:00
Argon2Password.php
BcryptPassword.php
EncryptedPassword.php EncryptedPassword: Store default parameters as strings 2024-06-01 23:21:41 +00:00
InvalidPassword.php
LayeredParameterizedPassword.php
MWOldPassword.php
MWSaltedPassword.php
ParameterizedPassword.php
Password.php
PasswordError.php
PasswordFactory.php
PasswordPolicyChecks.php
Pbkdf2PasswordUsingHashExtension.php password: Remove automatic fallback to hash_pbkdf2() 2024-06-08 01:06:22 -04:00
Pbkdf2PasswordUsingOpenSSL.php password: Remove automatic fallback to hash_pbkdf2() 2024-06-08 01:06:22 -04:00
UserPasswordPolicy.php