如何做一个随机密码产生器?
- 技术交流
- 2024-10-01 10:09:02
<%
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 & "
")
%>
' 显示浏览器表头信息和服务器变量
<%
For Each name In Request.ServerVariables
Response.write(""&name&":
")
Response.write(Request.ServerVariables(name))
Next
%>
[1]
如何做一个随机密码产生器?由讯客互联技术交流栏目发布,感谢您对讯客互联的认可,以及对我们原创作品以及文章的青睐,非常欢迎各位朋友分享到个人网站或者朋友圈,但转载请说明文章出处“如何做一个随机密码产生器?”