From 3dc55357a33fe2d158458ff5918ea68ad9452e4c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 17 Jun 2021 15:19:36 +0200 Subject: [PATCH] Deprecate PasswordUtil methods that will become useless after removal of the algorithms --- .../files/lib/util/PasswordUtil.class.php | 21 ++++--------------- 1 file changed, 4 insertions(+), 17 deletions(-) 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) { -- 2.20.1