-
Notifications
You must be signed in to change notification settings - Fork 71
/
encrypt.html
223 lines (217 loc) · 8.46 KB
/
encrypt.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
<!DOCTYPE HTML>
<html>
<head>
<title>加密 / 解密 - Got Your PW</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="description" content="Got Your PW 是一個簡易的資安資源網站,包含常用的工具,適合初學者的入門教材,和許多值得追蹤的資安相關網站。" />
<!--[if lte IE 8]><script async src="css/ie/html5shiv.js"></script><![endif]-->
<script src="js/jquery.min.js"></script>
<script src="js/skel.min.js"></script>
<script async src="js/jquery.dropotron.min.js"></script>
<script async src="js/jquery.scrollgress.min.js"></script>
<script async src="js/skel-layers.min.js"></script>
<script async src="js/init.js"></script>
<script async src="js/converter.js"></script>
<script async src="js/encrypt.js"></script>
<script async src='js/crypto-js/aes.js'></script>
<script async src='js/crypto-js/tripledes.js'></script>
<script async src='js/crypto-js/rabbit.js'></script>
<script async src='js/crypto-js/rc4.js'></script>
<script async src='js/crypto-js/mode-cfb-min.js'></script>
<script async src='js/crypto-js/mode-ctr-min.js'></script>
<script async src='js/crypto-js/mode-ecb-min.js'></script>
<script async src='js/crypto-js/mode-ofb-min.js'></script>
<script async src='js/crypto-js/pad-ansix923-min.js'></script>
<script async src='js/crypto-js/pad-iso10126-min.js'></script>
<script async src='js/crypto-js/pad-iso97971-min.js'></script>
<script async src='js/crypto-js/pad-zeropadding-min.js'></script>
<script async src='js/crypto-js/pad-nopadding-min.js'></script>
<script async src="js/ga.js"></script>
<noscript>
<link rel="stylesheet" href="css/skel.css" />
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="css/style-wide.css" />
</noscript>
<!--[if lte IE 8]><link rel="stylesheet" href="css/ie/v8.css" /><![endif]-->
</head>
<body>
<!-- Header -->
<header id="header" class="skel-layers-fixed">
<h1><a href="index.html">Got Your PW</a></h1>
<nav id="nav">
<ul>
<li><a href="index.html">首頁</a></li>
<li><a href="about.html">關於我們</a></li>
<li><a href="grab.html">抓周</a></li>
<li><a href="resources.html">資源</a></li>
<li>
<a href="" class="icon fa-angle-down">工具</a>
<ul>
<li><a href="converter.html">編碼轉換</a></li>
<li><a href="hash.html">Hash 生成</a></li>
<li><a href="encrypt.html">加密 / 解密</a></li>
</ul>
</li>
<li><a href="https://github.com/s3131212/gotyour.pw" class="button" target="_blank">GitHub Repo</a></li>
</ul>
</nav>
</header>
<!-- Main -->
<section id="main" class="container 75%">
<header>
<h2>加密 / 解密</h2>
<p>此工具可在線上對稱金鑰加密演算法的加解密</p>
</header>
<div class="box">
<h3>加密</h3>
<form method="post" action="#">
<div class="row uniform 50%">
<div class="6u 12u(mobilep)">
<h4>明文</h4>
<input type="text" name="content" id="content" value="" placeholder="Content" />
</div>
<div class="6u 12u(mobilep)">
<h4>密語</h4>
<input type="text" name="pass" id="pass" value="" placeholder="Passphrase" />
</div>
</div>
<div class="row uniform 50%">
<div class="6u 12u(mobilep)">
<h4>加密模式</h4>
<div class="select-wrapper">
<select id="en_method">
<option value="CBC" selected>CBC</option>
<option value="CFB">CFB</option>
<option value="CTR">CTR</option>
<option value="OFB">OFB</option>
<option value="ECB">ECB</option>
</select>
</div>
</div>
<div class="6u 12u(mobilep)">
<h4>Padding</h4>
<div class="select-wrapper">
<select id="en_padding">
<option value="Pkcs7" selected>PKCS#7</option>
<option value="Iso97971">Iso97971</option>
<option value="AnsiX923">AnsiX923</option>
<option value="Iso10126">Iso10126</option>
<option value="ZeroPadding">ZeroPadding</option>
<option value="NoPadding">NoPadding</option>
</select>
</div>
</div>
</div>
<div class="row uniform 50%">
<div class="12u">
<h4>AES-256</h4>
<input type="text" name="aes" id="aes" value="" placeholder="AES-256" readonly />
</div>
</div>
<div class="row uniform 50%">
<div class="12u">
<h4>DES</h4>
<input type="text" name="des" id="des" value="" placeholder="DES" readonly />
</div>
</div>
<div class="row uniform 50%">
<div class="12u">
<h4>Triple DES</h4>
<input type="text" name="tdes" id="tdes" value="" placeholder="Triple DES" readonly />
</div>
</div>
<div class="row uniform 50%">
<div class="12u">
<h4>Rabbit</h4>
<input type="text" name="rabbit" id="rabbit" value="" placeholder="Rabbit" readonly />
</div>
</div>
<div class="row uniform 50%">
<div class="12u">
<h4>RC4</h4>
<input type="text" name="rc4" id="rc4" value="" placeholder="RC4" readonly />
</div>
</div>
<div class="row uniform 50%">
<div class="12u">
<h4>RC4Drop</h4>
<input type="text" name="rc4d" id="rc4d" value="" placeholder="RC4Drop" readonly />
</div>
</div>
</form>
</div>
<div class="box">
<h3>解密</h3>
<form method="post" action="#">
<div class="row uniform 50%">
<div class="12u">
<h4>密文</h4>
<input type="text" name="ciphertext" id="ciphertext" value="" placeholder="Ciphertext" />
</div>
</div>
<div class="row uniform 50%">
<div class="6u 12u(mobilep)">
<h4>密語</h4>
<input type="text" name="passs" id="passs" value="" placeholder="Passphrase" />
</div>
<div class="6u 12u(mobilep)">
<h4>加密演算法</h4>
<div class="select-wrapper">
<select name="algorithm" id="algorithm">
<option value="aes">AES-256</option>
<option value="des">DES</option>
<option value="tdes">Triple DES</option>
<option value="rabbit">Rabbit</option>
<option value="rc4">RC4</option>
<option value="rc4d">RC4Drop</option>
</select>
</div>
</div>
</div>
<div class="row uniform 50%">
<div class="6u 12u(mobilep)">
<h4>加密模式</h4>
<div class="select-wrapper">
<select id="de_method">
<option value="CBC" selected>CBC</option>
<option value="CFB">CFB</option>
<option value="CTR">CTR</option>
<option value="OFB">OFB</option>
<option value="ECB">ECB</option>
</select>
</div>
</div>
<div class="6u 12u(mobilep)">
<h4>Padding</h4>
<div class="select-wrapper">
<select id="de_padding">
<option value="Pkcs7" selected>PKCS#7</option>
<option value="Iso97971">Iso97971</option>
<option value="AnsiX923">AnsiX923</option>
<option value="Iso10126">Iso10126</option>
<option value="ZeroPadding">ZeroPadding</option>
<option value="NoPadding">NoPadding</option>
</select>
</div>
</div>
</div>
<div class="row uniform 50%">
<div class="12u">
<h4>明文</h4>
<input type="text" name="plaintext" id="plaintext" value="" placeholder="Plain Text" readonly />
</div>
</div>
</form>
</div>
</section>
<!-- Footer -->
<footer id="footer">
<ul class="icons">
<li><a href="https://github.com/s3131212/gotyour.pw" class="icon fa-github"><span class="label">Github</span></a></li>
</ul>
<ul class="copyright">
<li>© Got Your PW. Some rights reserved. The contents are licensed under the <a href="https://creativecommons.org/licenses/by/4.0/deed.zh_TW" rel="nofollow">CC BY 4.0</a> .</li><li>Website Template: <a href="http://html5up.net" target="_blank" rel="nofollow">HTML5 UP</a>. The template is licensed under <a href="http://creativecommons.org/licenses/by/3.0/" rel="nofollow">CC BY 3.0</a> .</li>
</ul>
</footer>
</body>
</html>