PHP 亂數密碼產生器

Sample 1:
function randStr($len=6)
{
$chars=’ABDEFGHJKLMNPQRSTVWXYabdefghijkmnpqrstvwxy23456789#%*’;
// characters to build the password from
mt_srand((double)microtime()*1000000*getmypid());
// seed the random number generater (must be done)
$password=”;
while(strlen($password)<$len)
$password.=substr($chars,(mt_rand()%strlen($chars)),1);
return $password;
}

Sample 2:
function generatorPassword()
{
$password_len = 7;
$password = ”;

// remove o,0,1,l
$word = Yahoo RSS 資料訂閱 (2009-02-08)

  • Debian 13上,安裝docker+portainer (2026-02-12)
  • 盛竹如繼續看下去實在老梗 (2013-01-18)
  • SEO測試-961123-樂多打敗Blogger (2007-11-23)
  • [chatGPT 測試] 剪映 文字成片 VS. Wondershare Filmora 13 AI 文字轉影片 (2023-12-12)
  • 隨機美圖

    發佈留言

    發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *