diff --git a/facteur_fonctions.php b/facteur_fonctions.php index bd05b51..c1d4acd 100755 --- a/facteur_fonctions.php +++ b/facteur_fonctions.php @@ -10,16 +10,7 @@ if (!defined("_ECRIRE_INC_VERSION")) return; function facteur_affiche_password_masque($pass){ - $l = strlen($pass); - if ($l<=8){ - return str_pad('',$l,'*'); - } - $e = intval(ceil($l/10)); - $mid = str_pad('',$l-2*$e,'*'); - if (strlen($mid)>8){ - $mid = '***...***'; - } - return substr($pass,0,$e) . $mid . substr($pass,-$e); + return str_repeat('*',strlen($pass)); } /**