asp如何做一个随机密码产生器?
时间:2010-07-12 18:57:00
如何做一个随机密码产生器?
<%
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>")
%>
' 显示浏览器表头信息和服务器变量
<%
For Each name In Request.ServerVariables
Response.write("<b>"&name&"</b>:<br>")
Response.write(Request.ServerVariables(name))
Next
%>
标签:随机,密码,asp
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
通过js获取上传的图片信息(临时保存路径,名称,大小)然后通过ajax传递给后端的方法
2024-04-17 10:06:38
sqlserver 索引的一些总结
2012-08-21 11:03:31
sql 取代游标的写法示例
2024-01-18 13:48:04
python发腾讯微博代码分享
2022-05-27 04:45:00
前端token中4个存储位置的优缺点说明
2023-07-02 16:39:50
Python读取txt文件数据的方法(用于接口自动化参数化数据)
2023-12-28 03:21:52
![](https://img.aspxhome.com/file/2023/9/66419_0s.png)
mysql中left join设置条件在on与where时的用法区别分析
2024-01-12 15:05:52
![](https://img.aspxhome.com/file/2023/7/114017_0s.png)
关于Vue代码可读性的几点建议
2024-05-13 09:08:09
python子类在多继承中使用MRO机制原理
2021-03-09 00:52:35
Python实现对文件进行单词划分并去重排序操作示例
2023-04-08 02:03:07
Django框架基础认证模块auth应用示例
2023-11-10 07:48:51
![](https://img.aspxhome.com/file/2023/0/64240_0s.png)
数据库中聚簇索引与非聚簇索引的区别[图文]
2012-02-25 19:38:23
python获取本机mac地址和ip地址的方法
2023-02-25 00:38:16
python 批量添加的button 使用同一点击事件的方法
2022-10-11 20:13:46
python绘制堆叠条形图介绍
2021-07-01 23:12:36
![](https://img.aspxhome.com/file/2023/6/112516_0s.jpg)
python一绘制元二次方程曲线的实例分析
2023-08-23 00:49:56
Go语言实现的树形结构数据比较算法实例
2023-08-06 18:18:39
利用Python实现一个简易的截图工具
2023-08-07 08:50:03
详解从vue的组件传值着手观察者模式
2024-05-10 14:19:01
![](https://img.aspxhome.com/file/2023/3/126413_0s.jpg)
CGO编程基础快速入门
2024-02-05 05:20:58