如何做一個隨機密碼產(chǎn)生器?
<%
genPassword = ""
Randomize
For i = 1 to 8
intNum = Int(10 * Rnd + 48)
intUpper = Int(26 * Rnd + 65)
intLower = Int(26 * Rnd + 97)
intRand = Int(3 * Rnd + 1)
Select Case intRand
Case 1
strPartPass = Chr(intNum)
Case 2
strPartPass = Chr(intUpper)
Case 3
strPartPass = Chr(intLower)
End Select
genPassword = genPassword & strPartPass
Next
response.write(genPassword & "<br>")
%>
' 顯示瀏覽器表頭信息和服務(wù)器變量
<%
For Each name In Request.ServerVariables
Response.write("<b>"&name&"</b>:<br>")
Response.write(Request.ServerVariables(name))
Next
%>
[1]
相關(guān)文章
淺析Java、C/C++、JavaScript、PHP、Python分別用來開發(fā)什么?
用任何編程語言來開發(fā)程序,都是為了讓計算機干活,比如編寫一篇文章,下載一首MP3等,而計算機干活的CPU只認(rèn)識機器的指令,所以,盡管不同的編程語言差異極大,最后都得“翻譯”成CPU可以執(zhí)行的機器指令2018-08-08計算機網(wǎng)絡(luò)傳輸協(xié)議TCP三次握手與四次揮手原理
其實大家都聽過TCP三次握手建立連接,四次揮手?jǐn)嚅_連接,那我們今天就來具體看看,TCP到底是如何三次握手和四次揮手的,本文來為大家詳細(xì)解析2021-09-09