最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Serv-U软件密码加密函数
时间:2022-06-30 09:15:36 编辑:袖梨 来源:一聚教程网
<%
'==================================================
'函数名:ServUPassEnCode
'作 用:Serv-U软件密码加密函数
'参 数:strPass ------ 字符串
'作 者:netyum(杨嵩)
'时 间:2004年6月28日
'==================================================
Function SerUPassEnCode(strPass)
Dim Char1,Char2,Seed,prePass,EncodePass,FinalPass
If IsNull(strPass) Or strPass="" Then Exit Function
Char1 = Chr(Rand(97,122))
Char2 = Chr(Rand(97,122))
Seed = Char1 & Char2
prePass = Seed & strPass
EnCodePass = Ucase(md5(prePass)) '32位md5
FinalPass = Seed & EnCodePass
SerUPassEnCode = FinalPass
End Function
'==================================================
'函数名:Rand
'作 用:取两个整数之间的随机数
'参 数:n,m ------ 整数
'作 者:netyum(杨嵩)
'时 间:2004年6月28日
'==================================================
Function Rand(n,m)
Dim a,b,t
a = n : b = m
If b < a Then t = b : b = a : a = t
Randomize
Rand = Int(rnd*(b-a+1)+a)
End Function
%>
相关文章
- 学科网官网登录入口网页版-化学学科网官网登录首页 12-21
- 微信文件传输助手网页版在哪找-微信传输助手网页版使用教程详解 12-21
- 韩漫在线免费观看漫画入口-韩漫免费漫画页面土豪秋蝉 12-21
- 豆瓣网页版在线使用指南-豆瓣网页版快捷登录入口 12-21
- 163免费邮箱官网直登入口-163免费邮箱海外版快捷登录 12-21
- 夸克网盘如何不限速下载资源-夸克网盘不限速下载资源方法 12-21