From 8717fe8460a353795ea0fc2dc40a1b8d220b8707 Mon Sep 17 00:00:00 2001 From: Emi Date: Mon, 10 Mar 2025 16:02:31 -0300 Subject: [PATCH] Corrige funcion getSalt() --- php/nucleo/lib/toba_hash.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/php/nucleo/lib/toba_hash.php b/php/nucleo/lib/toba_hash.php index 778bb15aa0..d998239ebc 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$';