最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
我有一个加密方法,欢迎大家指正
时间:2022-07-02 23:58:09 编辑:袖梨 来源:一聚教程网
<%
IF Request("Action")=1 then
Dim String,StringLen,i,StringNumTmp,StringRndNum,ResultString,j
String = Request("Pass") '密码字符串
'开始计算字符数据
StringLen = Len(String)
For i = 1 to StringLen
StringNumTmp = Asc(Mid(String,i,1))
Randomize
StringRndNum=Int((18-1)*Rnd+1)
if Len(StringNumTmp + StringRndNum) < 3 then
For j = 1 to 3 - Int(Len(StringNumTmp + StringRndNum))
StringNumber = "0" & (StringNumTmp + StringRndNum)
Next
Else
StringNumber = StringNumTmp + StringRndNum
End if
ResultString = ResultString & Chr(StringNumTmp - StringRndNum) & StringNumber
Next
Response.write "加密后结果:" & ResultString '输出结果
%>
<%
'开始破解
For i = 1 to Len(ResultString) Step 4
PString = Left(Mid(ResultString,i,4),1)
PStringNum1 = Asc(PString)
PStringNum2 = Int(Right(Mid(ResultString,i,4),3))
PStringNum = (PStringNum1 + PStringNum2) / 2
PString1 = PString1 & Chr(PStringNum)
Next
Response.write "破解后结果:" & PString1
End if
%>
IF Request("Action")=1 then
Dim String,StringLen,i,StringNumTmp,StringRndNum,ResultString,j
String = Request("Pass") '密码字符串
'开始计算字符数据
StringLen = Len(String)
For i = 1 to StringLen
StringNumTmp = Asc(Mid(String,i,1))
Randomize
StringRndNum=Int((18-1)*Rnd+1)
if Len(StringNumTmp + StringRndNum) < 3 then
For j = 1 to 3 - Int(Len(StringNumTmp + StringRndNum))
StringNumber = "0" & (StringNumTmp + StringRndNum)
Next
Else
StringNumber = StringNumTmp + StringRndNum
End if
ResultString = ResultString & Chr(StringNumTmp - StringRndNum) & StringNumber
Next
Response.write "加密后结果:" & ResultString '输出结果
%>
<%
'开始破解
For i = 1 to Len(ResultString) Step 4
PString = Left(Mid(ResultString,i,4),1)
PStringNum1 = Asc(PString)
PStringNum2 = Int(Right(Mid(ResultString,i,4),3))
PStringNum = (PStringNum1 + PStringNum2) / 2
PString1 = PString1 & Chr(PStringNum)
Next
Response.write "破解后结果:" & PString1
End if
%>
相关文章
- 2024金摇杆奖年度游戏名单 11-22
- 用针在纸上绣画是哪种非遗技艺 蚂蚁新村11月21日答案最新 11-22
- 重返未来1999纸信圈儿什么时候up 为什么故事集卡池活动介绍 11-22
- 重返未来1999雾中盛会怎么玩 UTTU聚光专栏雾中盛会活动介绍 11-22
- 光遇姆明季后续版本怎么玩 光遇音乐节宴会节活动介绍 11-22
- 无期迷途四星装束是谁 无期迷途首个四星装束剪影介绍 11-22