diff --git a/php/nucleo/lib/toba_hash.php b/php/nucleo/lib/toba_hash.php index 778bb15aa..d998239eb 100644 --- a/php/nucleo/lib/toba_hash.php +++ b/php/nucleo/lib/toba_hash.php @@ -58,12 +58,12 @@ private function getSalt() case 'SHA512': $vueltas = ($this->rounds < 1000) ? $this->rounds * 1000: $this->rounds + 5000; - $salt = sprintf('$6$rounds=%d$', $this->rounds); + $salt = sprintf('$6$rounds=%d$', $vueltas); break; case 'SHA256': $vueltas = ($this->rounds < 1000) ? $this->rounds * 1000: $this->rounds + 5000; - $salt = sprintf('$5$rounds=%d$', $this->rounds); + $salt = sprintf('$5$rounds=%d$', $vueltas); break; case 'MD5': $salt = '$1$';