[LINUX:27584] Re: Random Passwd üreteci

---------

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

From: Devrim GUNDUZ (devrim@oper.metu.edu.tr)
Date: Sun 06 May 2001 - 13:24:12 EEST


Merhaba,

Bilmem isinizi gorur mu ; php ile soyle bir sey var:

<?
function ID() {
  $i=0;
    srand(time());
    $a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
     for($i; $i<=1; $i++) {
         $id.=substr($a, (rand()%(strlen($a))),1);
     }
    return(md5($id));
}
if (!empty($id)) {
    echo "ID : $id<br>\n";
}
$id=ID();
echo "id : $id";
$id = substr("$id",0,8);
exit;?>

iyi calismalar.

On Sat, 5 May 2001, Ahmet Bozkurt wrote:

> Selamlar..
> Linux veya Win altında çalışan, kullanıcılara verilmek üzere rastgele
> passwd üreten bir program bilenler yazarlar mı?
>
> ahmetb@taek.gov.tr
>
>
>
> Listeden cikmak icin:
> unsub linux
> mesajini listeci@bilkent.edu.tr adresine gonderiniz.
> Lutfen Listeci icin MIME / HTML / Turkce Aksan kullanmayin.
> Listeci arayuzu: http://listweb.bilkent.edu.tr/yardim/bilkent/linux.html
> Liste arsivinin adresi: http://listweb.bilkent.edu.tr/
>

-- 

Devrim GÜNDÜZ devrim@oper.metu.edu.tr devrimg@tr.net

--------------------- Gunes olamiyorsan eger; gokyuzundeki en parlak yildiz ol...

Listeden cikmak icin: unsub linux mesajini listeci@bilkent.edu.tr adresine gonderiniz. Lutfen Listeci icin MIME / HTML / Turkce Aksan kullanmayin. Listeci arayuzu: http://listweb.bilkent.edu.tr/yardim/bilkent/linux.html Liste arsivinin adresi: http://listweb.bilkent.edu.tr/


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

---------

Bu arsiv hypermail 2b29 tarafindan uretilmistir.