From 3c1aee6983335595fd145ff930459568ba20c353 Mon Sep 17 00:00:00 2001 From: nuxsmin Date: Tue, 31 Jan 2017 15:11:43 +0100 Subject: [PATCH] * [FIX] Enforced salt length to 22 chars long. --- inc/SP/Core/Crypt.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/SP/Core/Crypt.class.php b/inc/SP/Core/Crypt.class.php index fd06358e..e3097d6f 100644 --- a/inc/SP/Core/Crypt.class.php +++ b/inc/SP/Core/Crypt.class.php @@ -113,7 +113,7 @@ class Crypt $salt = Config::getConfig()->getPasswordSalt(); } - return '$2y$07$' . substr($salt, 0, 21) . '$'; + return '$2y$07$' . substr($salt, 0, 22) . '$'; } /**