note 103244 deleted from function.md5 by danbrown

From: Date: Mon, 04 Apr 2011 14:23:28 +0000
Subject: note 103244 deleted from function.md5 by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-178470@lists.php.net to get a copy of this message
Note Submitter: Maximiliano Fragale ---- Una funcion muy simple para generar passwords aleatoriamente. El parametro length establece la longitud de la clave devuelta. Espero que les sirva. ---------------------------- A very simple function to generate random passwords. The length parameter sets the length of the key returned. I hope they serve. function rand_passwd($length){ $tmp=md5(mt_rand()); $tmp=substr($tmp,0,$length); return $tmp; }

« previous php.notes (#178470) next »