asp高手来看下这段解密函数!
1,这是段解密数字字符串的函数,请高手逆向写下数字字符串的对应加密函数,学习使用,本人愚昧,只能看懂,但不会写。
VBScript code:
Public Function DeCode(x)
x=replace(x,"%","")
For i=1 To len(x)
If asc(mid(x,i,1))>=72 Then
x=replace(x,mid(x,i,1),"0")
End If
Next
For i=1 To len(x) Step 4
decode=decode& chr(int("&H" & mid(x,i,4)))
Next
End Function
要是觉得简单,我在贴上一段难的,考考大家。下面是加密的函数,那位高手能写出对应解密的。
VBScript code:
Function Encode(strPass)
Dim i, theStr, strTmp
For i = 1 To Len(strPass)
strTmp = Asc(Mid(strPass, i, 1))
theStr = theStr & Abs(strTmp)
Next
strPass = theStr
theStr = ""
Do While Len(strPass) > 16
strPass = JoinCutStr(strPass)
Loop
For i = 1 To Len(strPass)
strTmp = CInt(Mid(strPass, i, 1))
strTmp = IIf(strTmp > 6, Chr(strTmp + 60), strTmp)
theStr = theStr & strTmp
Next
Encode = theStr
End Function
JoinCutStr是什么?
相关问答:
<%@language="vbscript"%>
<%option explicit%>
<html>
<head> <title>xxx </title> </head>
<script language=vbs>
'注意变量 ......
我原本是学jsp的可找了一个ASP的公司!我要重新学习! 学习ASP! 希望大家推荐一本好书给我谢谢
<ASP3.0高级编程> 网上有电子版的
发现网上asp信息时最多的 比其他的都多好多
yun
找本有应用事例的A ......
现在这社会基本上不需要ASP程序员了,一面试,都要.NET或者PHP,JSP的,哎,,,,ASP这么不值钱吗,学习ASP是个错误吗
没啥错误 一句话:技多不压身
靠ASP都混不到饭吃了 晕 晕
我的意思是多学一门技术没啥错误 ......
字段PowerList里面的值:KSO10000,KSO10021,KSO10004,KSO10022,KSO10020,KSO10008
现在要判断,当PowerList里面存在KSO10004这个值的时候,输出:好
VBScript code:
<%
set rs=server.Creat ......