Advertisement
ASP_Volume2 OLE/ COM/ DCOM/ Active-X #42621

Password Generator..,

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

AI

AI Summary: 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.

Source Code
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();
Original Comments (3)
Recovered from Wayback Machine