mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-05 08:04:09 +01:00
* [FIX] Solves #394. Fixed the Blowfish salt length to 22 chars long. Thanks to @ipshenicyn for the feedback.
This commit is contained in:
@@ -285,7 +285,7 @@ class Crypt
|
||||
$salt = Config::getConfig()->getPasswordSalt();
|
||||
}
|
||||
|
||||
$salt = '$2y$07$' . $salt . '$';
|
||||
$salt = '$2y$07$' . substr($salt, 0, 21) . '$';
|
||||
|
||||
return substr(crypt($string, $salt), 7, 32);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user