Re: [Linux-programlama] Php de rasgele şifre üretmen

---------

New Message Reply About this list Date view Thread view Subject view Author view Attachment view

From: Ahmet ERDOĞAN (ahmet@orumcekyazilim.com)
Date: Tue 15 Feb 2005 - 12:10:15 EET


<?php
function makeRandomPassword() {
  $salt = "abchefghjkmnpqrstuvwxyz0123456789";
  srand((double)microtime()*1000000);
   $i = 0;
   while ($i <= 7) {
      $num = rand() % 33;
      $tmp = substr($salt, $num, 1);
      $pass = $pass . $tmp;
      $i++;
   }
  return $pass;
}

$password = makeRandomPassword();

?>

_______________________________________________
Linux-programlama mailing list
Linux-programlama@liste.linux.org.tr
http://liste.linux.org.tr/mailman/listinfo/linux-programlama


New Message Reply About this list Date view Thread view Subject view Author view Attachment view

---------

Bu arsiv hypermail 2.1.2 tarafindan uretilmistir.