From: Tim Düsterhus Date: Thu, 17 Jun 2021 13:19:36 +0000 (+0200) Subject: Deprecate PasswordUtil methods that will become useless after removal of the algorithms X-Git-Tag: 5.5.0_Alpha_1~628 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3dc55357a33fe2d158458ff5918ea68ad9452e4c;p=GitHub%2FWoltLab%2FWCF.git Deprecate PasswordUtil methods that will become useless after removal of the algorithms --- diff --git a/wcfsetup/install/files/lib/util/PasswordUtil.class.php b/wcfsetup/install/files/lib/util/PasswordUtil.class.php index d4b20c9352..8ff517430b 100644 --- a/wcfsetup/install/files/lib/util/PasswordUtil.class.php +++ b/wcfsetup/install/files/lib/util/PasswordUtil.class.php @@ -28,8 +28,7 @@ final class PasswordUtil private static $blowfishCharacters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789./'; /** - * list of supported encryption type by software identifier - * @var string[] + * @deprecated 5.5 - After the removal of other deprecated methods this would effectively be empty. */ private static $supportedEncryptionTypes = [ 'argon2', // vBulletin 5.x @@ -67,10 +66,7 @@ final class PasswordUtil const BCRYPT_TYPE = '2a'; /** - * Returns true if given encryption type is supported. - * - * @param string $type - * @return bool + * @deprecated 5.5 - After the removal of other deprecated methods this would effectively always return false. */ public static function isSupported($type) { @@ -109,13 +105,7 @@ final class PasswordUtil } /** - * Validates password against stored hash, encryption type is automatically resolved. - * - * @param string $username - * @param string $password - * @param string $dbHash - * @return bool - * @throws SystemException + * @deprecated 5.5 - After the removal of other deprecated methods this would effectively always return false. */ public static function checkPassword($username, $password, $dbHash) { @@ -146,10 +136,7 @@ final class PasswordUtil } /** - * Returns encryption type if possible. - * - * @param string $hash - * @return string + * @deprecated 5.5 - After the removal of other deprecated methods this would effectively always return 'unknown'. */ public static function detectEncryption($hash) {