最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
密码随机函数
时间:2022-07-02 09:17:03 编辑:袖梨 来源:一聚教程网
function make_password()
{$pw_length=24;//密码长度
$low_ascii_bound=50;
$upper_ascii_bound=122;
$notuse=array(58,59,60,61,62,63,64,73,79,91,92,93,94,95,96,108,111);
while($i<$pw_length)
{mt_srand((double)microtime()*1000000);
$randnum=mt_rand($low_ascii_bound,$upper_ascii_bound);
if(!in_array($randnum,$notuse))
{$password1=$password1.chr($randnum);
$i ;
}
}
return $password1;}
$password=make_password();//调用
?>
相关文章
- 《逆水寒手游》群侠逐律流华及绝技百步飞剑抽取建议 08-01
- PLUME可能上涨40%,因为聪明资金正在加速积累 08-01
- 《阴阳锅3阴缘牵》第一章诡媒解谜攻略 08-01
- 《主宰世界》白骨复生活动攻略 08-01
- 《鸣潮》2.2版本新声骸套装流云逝尽之空效果介绍 08-01
- 《原神》5.5版本七圣召唤新增卡牌介绍 08-01