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 Namespace User under \MediaWiki\User 2023-09-19 19:18:16 +00:00
AbstractPbkdf2Password.php password: Remove automatic fallback to hash_pbkdf2() 2024-06-08 01:06:22 -04:00
Argon2Password.php Namespace includes/password 2024-05-18 16:17:38 +01:00
BcryptPassword.php Namespace includes/password 2024-05-18 16:17:38 +01:00
EncryptedPassword.php EncryptedPassword: Store default parameters as strings 2024-06-01 23:21:41 +00:00
InvalidPassword.php Namespace includes/password 2024-05-18 16:17:38 +01:00
LayeredParameterizedPassword.php Namespace includes/password 2024-05-18 16:17:38 +01:00
MWOldPassword.php Namespace includes/password 2024-05-18 16:17:38 +01:00
MWSaltedPassword.php Namespace includes/password 2024-05-18 16:17:38 +01:00
ParameterizedPassword.php Namespace includes/password 2024-05-18 16:17:38 +01:00
Password.php Namespace includes/password 2024-05-18 16:17:38 +01:00
PasswordError.php Namespace includes/password 2024-05-18 16:17:38 +01:00
PasswordFactory.php Namespace includes/password 2024-05-18 16:17:38 +01:00
PasswordPolicyChecks.php Namespace includes/password 2024-05-18 16:17:38 +01:00
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 Namespace includes/password 2024-05-18 16:17:38 +01:00