惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

C
CXSECURITY Database RSS Feed - CXSecurity.com
Stack Overflow Blog
Stack Overflow Blog
月光博客
月光博客
T
Threat Research - Cisco Blogs
小众软件
小众软件
有赞技术团队
有赞技术团队
酷 壳 – CoolShell
酷 壳 – CoolShell
Apple Machine Learning Research
Apple Machine Learning Research
C
Cyber Attacks, Cyber Crime and Cyber Security
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
T
Tailwind CSS Blog
Cisco Talos Blog
Cisco Talos Blog
V
V2EX
博客园 - 【当耐特】
C
Cybersecurity and Infrastructure Security Agency CISA
Hugging Face - Blog
Hugging Face - Blog
The Cloudflare Blog
The Last Watchdog
The Last Watchdog
Simon Willison's Weblog
Simon Willison's Weblog
T
Threatpost
S
Secure Thoughts
O
OpenAI News
P
Proofpoint News Feed
S
SegmentFault 最新的问题
Forbes - Security
Forbes - Security
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Application and Cybersecurity Blog
Application and Cybersecurity Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Last Week in AI
Last Week in AI
宝玉的分享
宝玉的分享
Scott Helme
Scott Helme
T
Tenable Blog
A
Arctic Wolf
L
LINUX DO - 热门话题
爱范儿
爱范儿
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
www.infosecurity-magazine.com
www.infosecurity-magazine.com
V
Visual Studio Blog
Hacker News: Ask HN
Hacker News: Ask HN
Hacker News - Newest:
Hacker News - Newest: "LLM"
腾讯CDC
博客园 - Franky
WordPress大学
WordPress大学
Know Your Adversary
Know Your Adversary
博客园_首页
雷峰网
雷峰网
IT之家
IT之家
PCI Perspectives
PCI Perspectives
L
LINUX DO - 最新话题
H
Heimdal Security Blog

博客园 - s3

汇编指令速查(转) C#实现VB中的asc和chr函数,字符(含中文)转ASCII 飘零网络验证-商业版3和金盾版1.5-研究中 virtualbox安装mac os x雪豹 最新的IP数据库备份 安装.net framework 4.0出错 “不信任的操作” ubuntu11.10安装redmine1.3 Fedora安装openresty Cosign安装-iis过滤模块介绍 fedora16安装mysql fedora16安装slickedit (转)SlickEdit的备份功能 (转)Slickedit的版本控制 (转)SlickEdit的按需显示 ubuntu11.10下使用slickedit16编译nginx(一) FreeBSD8.2安装GNOME(转) FreeBSD8.2安装(转) FreeBSD安装时的参考文章 Loong SSO安装部署
RC4 加密算法asp版
s3 · 2014-03-23 · via 博客园 - s3
 1 Function RC4(data, Key)
 2     Dim s(256), k(256), outstr, Acii, j, tst, xre1, xre2, temp, x, t, y, qwe, zxc
 3     For i = 1 To 256
 4         s(i) = i - 1
 5     Next
 6     j = 1
 7     For i = 1 To 256
 8         dex = dex + 1
 9         If j > Len(Key) Then
10             j = 1
11         End If
12         Acii = Asc(Mid(Key, j, 1))
13         If Acii < 0 Then
14             tst = Hex(Acii)
15             xre1 = Mid(tst, 1, 2)
16             xre2 = Mid(tst, 3, 2)
17             k(i) = Int("&H" & xre1)
18             k(i + 1) = Int("&H" & xre2)
19             i = i + 1
20         Else
21             k(i) = Acii
22         End If
23         j = j + 1
24     Next
25     j = 0
26     For i = 1 To 256
27         j = (j + s(i) + k(i)) Mod 256 + 1
28         temp = s(i)
29         s(i) = s(j)
30         s(j) = temp
31     Next
32     j = 0
33     For i = 1 To Len(data)
34         x = (x + 1) Mod 256 + 1
35         j = (j + s(x)) Mod 256 + 1
36         temp = s(x)
37         s(x) = s(j)
38         s(j) = temp
39         t = (s(x) + s(j) Mod 256) Mod 256 + 1
40         y = s(t)
41         Acii = Asc(Mid(data, i, 1))
42         If Acii < 0 Then
43             tst = Hex(Acii)
44             qwe = qwe + 1
45             If qwe >= 2 Then
46                 zxc = Int("&H" & Mid(tst, 3, 2))
47                 qwe = 0
48             Else
49                 zxc = Int("&H" & Mid(tst, 1, 2))
50                 i = i -1
51             End If
52         Else
53             zxc = Acii
54         End If
55         outstr = outstr & Bitsor(zxc, y)
56     Next
57     RC4 = outstr
58 End Function
59 
60 Function Bitsor(x, y)
61     Dim Mx, Hx, Wx
62     Mx = 0
63     Hx = 0
64     Wx = 0
65     Mx = x And y
66     Mx = Mx * 2
67     Hx = Hex(X + y - Mx)
68     If Len(Hx) > 1 Then
69         Wx = Hx
70     Else
71         Wx = "0" & Hx
72     End If
73     Bitsor = Wx
74 End Function