Advertisement
ASP_Volume3 OLE/ COM/ DCOM/ Active-X #57993

Password Generator..,

This function return Password consists of 0-9, a-z, A-Z

AI

Riepilogo AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Codice sorgente
original-source
<?
 function PassGen() {
 $chars=array();
 for($i=48;$i<=57;$i++) {
	array_push($chars, chr($i));
 }
 for($i=65;$i<=90;$i++) {
	array_push($chars, chr($i));
 }
 for($i=97;$i<=122;$i++) {
	array_push($chars, chr($i));
 }
 while(list($k, $v)=each($chars)) {
  print $k." -> ".$v."<br>";
 }
 for($i=0;$i<8;$i++) { 
	mt_srand((double)microtime()*1000000);
	$passwd.=$chars[mt_rand(0,count($chars))];
 }
 return $passwd;
}
 print PassGen();
Commenti originali (3)
Recuperato da Wayback Machine