mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[feature/passwords] Use correct prefix for salt in salted_md5
PHPBB3-11610
This commit is contained in:
parent
857b90057b
commit
e4a5aacf2a
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ class phpbb_crypto_driver_salted_md5 extends phpbb_crypto_driver_base
|
||||||
|
|
||||||
$random = $this->helper->get_random_salt($count);
|
$random = $this->helper->get_random_salt($count);
|
||||||
|
|
||||||
$salt = '$H$';
|
$salt = $this->get_prefix();
|
||||||
$salt .= $this->helper->itoa64[min($count + 5, 30)];
|
$salt .= $this->helper->itoa64[min($count + 5, 30)];
|
||||||
$salt .= $this->helper->hash_encode64($random, $count);
|
$salt .= $this->helper->hash_encode64($random, $count);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue