RC4
所属分类:WEB开发
开发工具:Visual Basic
文件大小:12KB
下载次数:14
上传日期:2011-03-29 20:00:01
上 传 者:
Santana
说明: RC4 encryption script (ASP .Net)
文件列表:
RC4\Demo.asp (1124, 2001-05-08)
RC4\Demo.gif (10297, 2001-05-08)
RC4\RC4.asp (1643, 2001-05-08)
RC4 (0, 2010-08-27)
Due to the nature of HTML and the inability to represent
specific characters (ie NULL) in the ASCII table, you
may run into a situation where you can encrypt your
data, but decrypting it will not yield the original
results. Don't be alarmed - the algorithm works.
The problem is that it is not receiving the same
encrypted characters that it originally returned.
Try this. Take the key and the clear text message that
you were trying to encrypt and do the following:
<%
Dim StrMyKey
Dim StrMyMessage
StrMyKey = "INSERT YOUR KEY HERE"
StrMyMessage = "INSERT YOUR MESSAGE HERE"
Response.Write(RC4(RC4(StrMyMessage, StrMyKey), StrMyKey))
%>
This should return the original message that you were
having problems decrypting the results. If you "must"
display the results in the clients browser, then you
may want to consider other alternatives of storing the
information on the client. (Such as a hex format of the
encrypted data in a hidden field)
Hopefully this has helped answer any problems that you
may run into.
近期下载者:
相关文件:
收藏者: