qq_36257233
qq_36257233
2017-06-10 07:01

asp加密解密求解决求大神来啊。。。 1

10
  • 解密
  • asp.net
  • 函数
  • 加密

这是解密的执行代码,

    解密以后页面显示空白。
 a = "6-66-85-21-69-4-87-82-65-3-75-74-64-"


==================================================================================
<%
Function EnCodeY(sText)
Dim arrCode()
Dim sCode
sCode = Request.Cookies("ddd")("Qmxanman")

arrData = split(sText, CHR(-24151))

cntData = UBOUND(arrData) - 1
cntCode = Len(sCode) - 1

Redim arrCode(cntCode)

For i = 0  To cntCode
arrCode(i) = Mid(sCode, i + 1, 1)
Next

flag = 0
strResult = ""
For i = 0 To cntData
strResult = strResult & CHR(Cint(arrData(i)) XOR ASC(arrCode(flag)))
IF flag = cntCode Then
flag = 0
Else
flag = flag + 1
End IF
Next

EnCodeY = strResult
End Function

a = "6-66-85-21-69-4-87-82-65-3-75-74-64-"
response.write EnCodeY(a)&"<br>"

%>
==================================================================================
  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

3条回答