Grey_Wolf Posted September 22, 2005 Report Share Posted September 22, 2005 Ir radusies nepiecieshamiiba peec paroles genereshanas Kaadas idejas? vajag lai buutu tiktu izmantoti visi mazie latinju burti un cipari vismaz 8 simboli Link to comment Share on other sites More sharing options...
bubu Posted September 22, 2005 Report Share Posted September 22, 2005 http://lv.php.net/manual/en/function.rand.php Tikai pārbaudi pēc tam vai ir jēdzīga parole (tb ir vismaz viens cipars un viens burts). Link to comment Share on other sites More sharing options...
litt Posted September 22, 2005 Report Share Posted September 22, 2005 $passw = '' . substr(md5( mktime() ), 0, 8); Link to comment Share on other sites More sharing options...
Grey_Wolf Posted September 22, 2005 Author Report Share Posted September 22, 2005 http://lv.php.net/manual/en/function.rand.phpTikai pārbaudi pēc tam vai ir jēdzīga parole (tb ir vismaz viens cipars un viens burts). 22881[/snapback] paldies :) piemeeros atradu to kas derees :) protams pasham jau arii bija doma izmantot rand -kaa gan beez ta :) tikai mazliet savaadaak ..... Link to comment Share on other sites More sharing options...
Analgiins Posted September 22, 2005 Report Share Posted September 22, 2005 labaak mt_rand izmantot Link to comment Share on other sites More sharing options...
blackhalt Posted September 22, 2005 Report Share Posted September 22, 2005 Uber 13 Link to comment Share on other sites More sharing options...
KAC Posted September 22, 2005 Report Share Posted September 22, 2005 function createPass($length = 5) { $pass = ''; $chars = 'AaBbCcDdEeFfIiJjKkLlMmNnOoPpQqRrSsTtUuWwXxYyZz1234567890'; for ($i = 0; $i < floor($length); $i++) { $pass .= $chars{mt_rand(0, strlen($chars)-1)}; } return $pass; } Link to comment Share on other sites More sharing options...
hmnc Posted September 23, 2005 Report Share Posted September 23, 2005 var paspēlēties: http://alternative.lv/tmp/passgen.php savām vajadzībām rakstīts uz ātru roku tāpēc nezākāt :) Link to comment Share on other sites More sharing options...
Grey_Wolf Posted September 23, 2005 Author Report Share Posted September 23, 2005 var paspēlēties: http://alternative.lv/tmp/passgen.php savām vajadzībām rakstīts uz ātru roku tāpēc nezākāt :) 22994[/snapback] :) ko tas man dod ka tas ir webaa? ------ paldies par ieteikumiem - problema jau tika atrisinaata ar bubu ieteikto linku :) tur bija gana daudz piemeeru unideju :) ( neiedomaajos tur pamekleet - jo par rand() jautaajumu nebija - tas tapat bija skaidrs ka to naaksies izmantot ) Link to comment Share on other sites More sharing options...
v3rb0 Posted September 23, 2005 Report Share Posted September 23, 2005 bet ja gribi lai cilveeki atceras, lieto un neraksta uz lapinjas pie monitora tavas sagenereetas paroles, tad vinjaas vajag ieklaut kaadu vaardnicas vaardu- savaac listi ar iisiem vardiem - maja, kaja utt. izvelies vienu random vaardu un ap to tad kabini apkaart ciparus, burdus un ko veel ne. Link to comment Share on other sites More sharing options...
Grey_Wolf Posted September 23, 2005 Author Report Share Posted September 23, 2005 bet ja gribi lai cilveeki atceras, lieto un neraksta uz lapinjas pie monitora tavas sagenereetas paroles, tad vinjaas vajag ieklaut kaadu vaardnicas vaardu- savaac listi ar iisiem vardiem - maja, kaja utt. izvelies vienu random vaardu un ap to tad kabini apkaart ciparus, burdus un ko veel ne. 22997[/snapback] nu nee :) tas neder.... (kautgan ideja ir laba) shajaa gadijumaa doma ir taada ka parole pie registraacijas tiek uzgenereeta - useris ielagojas un tad pats var nomainiit paroli :) - emaila validaates paarbaudei :) -- noraadiji nepareizu e-mailu pats vainiigs - klaat netiec.... --------- P.S. taa nav mana ideja - klienta prasiiba... Link to comment Share on other sites More sharing options...
hmnc Posted September 23, 2005 Report Share Posted September 23, 2005 (edited) neinu es īsti neiedziļinājos jautājuma būtībā - tāpēc iedevu linku :) sorr par offtopiku Edited September 23, 2005 by hmnc Link to comment Share on other sites More sharing options...
Recommended Posts