http://pear.php.net/package/Text_Password

解决方案 »

  1.   

    现在ocr技术这么厉害,不管用何方式,我认为对真正想黑网站的高手,都不是很好使
    还是进行登入失败次数限制吧,虽然损失一些效率这是我的个人意见
      

  2.   

    Function GetRandString(Maxlen)
      dim i,str,num,strCmp,intStr
      strCmp="ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdefghijklmnopqrstuvwxyz"
      str=""
      intStr=Len(strCmp)
      randomize
      for i=1 to maxlen
        num=Int((intStr * Rnd) + 1)
        str=str&Mid(strCmp,num,1)
      Next
      GetRandString=str
    End FunctionCall GetRandString(6)      '生成6位的随机数