-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
341 lines (317 loc) · 17.5 KB
/
index.html
File metadata and controls
341 lines (317 loc) · 17.5 KB
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
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
<!DOCTYPE html>
<html lang="en-US">
<head>
<title>MsgCipher</title>
<link rel="canonical" href="https://conceptree.github.io/msgCipher/" />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="manifest" href="./manifest.json">
<link rel="shortcut icon" href="./assets/chrome/chrome-favicon-16-16.png" type="image/x-icon">
<link rel="apple-touch-icon" href="./assets/touch-icons/apple-touch-icon-ipad-76x76.png">
<meta name="theme-color" content="#3367D6">
<meta name="description"
content="Message encryption and decryption application based on a diverse array of different ciphers and encoders!">
<script src="https://www.gstatic.com/firebasejs/8.7.1/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.7.1/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.7.1/firebase-database.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css"
integrity="sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css">
<link rel="stylesheet" href="./src/css/styles.css">
<script type="text/javascript" src="./lib/jsencrypt.min.js"></script>
<script type="text/javascript" src="./lib/Blowfish.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.0.0/crypto-js.min.js"
integrity="sha512-nOQuvD9nKirvxDdvQ9OMqe2dgapbPB7vYAMrzJihw5m+aNcf0dX53m6YxM4LgA9u8e9eg9QX+/+mPu8kCNpV2A=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script type="module" src="./src/main.js" async defer></script>
</head>
<body class="background-container">
<div class="header">
<i id="chatbtn" data-bs-toggle="modal" class="bi bi-chat-left-text"
style="font-size: 1.5rem; color: rgb(255, 255, 255); padding: 10px; cursor: pointer;"></i>
<i id="userbtn" data-bs-toggle="modal" data-bs-target="#userLoginModal" class="bi bi-person-circle"
style="font-size: 1.5rem; color: rgb(255, 255, 255); padding: 10px; cursor: pointer;"></i>
</div>
<!-- Select cipher form-->
<div class="container">
<ul class="nav nav-tabs bg-dark text-light" id="mainNav">
<li class="nav-item">
<p class="nav-link active" id="ciphersbtn">Ciphers</p>
<!-- <i id="ciphersbtn" class="bi bi-chat-left-text"></i> -->
</li>
<li class="nav-item" id="rsabtn">
<p class="nav-link" id="rsabtn">RSA Keygen</p>
<!-- <i id="rsabtn" class="bi bi-chat-left-text"></i> -->
</li>
<li class="nav-item" id="aesbtn">
<p class="nav-link" id="aesbtn">AES & DES, Triple DES</p>
<!-- <i id="aesbtn" class="bi bi-chat-left-text"></i> -->
</li>
<li class="nav-item" id="blowfishbtn">
<p class="nav-link" id="blowfishbtn">Blowfish</p>
<!-- <i id="blowfishbtn" class="bi bi-chat-left-text"></i> -->
</li>
<li class="nav-item" id="hashbtn">
<p class="nav-link" id="hashbtn">Hashing</p>
<!-- <i id="hashbtn" class="bi bi-chat-left-text"></i> -->
</li>
</ul>
<div class="card card-body bg-dark text-white">
<!--CIPHERS-->
<form class="conainer form-container" id="ciphersForm">
<div class="form-group">
<label for="ciphers">Ciphers</label>
<select class="form-control" id="ciphers">
<option disabled selected>Select a cipher...</option>
</select>
</div>
<div id="ciphersMultiSelector" class="multi-container">
</div>
<div class="form-group hidden" id="keySelector">
<label for="inputText">Key</label>
<input type="text" class="form-control" id="msgKeyInput" placeholder="key">
</div>
<div class="form-group">
<label for="inputText">Message</label>
<textarea type="text" class="form-control message" id="messageInput"
placeholder="Your message..."></textarea>
</div>
<div id="imageCipherContainer"></div>
<div class="d-flex cipher-buttons">
<button id="encryptButton" type="button" class="btn btn-danger flex-fill .mt-1">Encrypt</button>
<button id="decryptButton" type="button" class="btn btn-primary flex-fill .mt-1">Decrypt</button>
</div>
</form>
<!--RSA-->
<form class="conainer form-container hidden" id="rsaForm">
<div class="form-group">
<label for="ciphers">Key Sizes</label>
<select class="form-control" id="keySizes">
<option>Select the key size...</option>
<option>512 bit</option>
<option>1024 bit</option>
<option>2048 bit</option>
<option>4096 bit</option>
</select>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="checkbox" id="asyncCheck" value="async">
<label class="form-check-label" for="inlineCheckbox1">Async</label>
</div>
<div class="timer">
<p id="rsaTimer"></p>
</div>
<div class="d-flex cipher-buttons">
<button id="generateKeyBtn" type="button" class="btn btn-primary flex-fill .mt-1">Generate</button>
</div>
<hr class="dotted">
<div class=" d-flex flex-row">
<div class="form-group flex-grow-1 mr-1" id="keySelector">
<label for="inputText">Private Key</label>
<textarea type="text" class="form-control message" id="privateKeyInput"
placeholder="PRIVATE KEY"></textarea>
</div>
<div class="form-group flex-grow-1 ml-1">
<label for="inputText">Public Key</label>
<textarea type="text" class="form-control message" id="publicKeyInput"
placeholder="PUBLIC KEY"></textarea>
</div>
</div>
<div id="rsaMessageContainer" class="hidden">
<hr class="dotted">
<div class="form-group">
<label for="inputText">Message</label>
<textarea type="text" class="form-control message" id="rsaMessageInput"
placeholder="Your message..."></textarea>
</div>
<div class="d-flex cipher-buttons">
<button id="rsaEncryptButton" type="button"
class="btn btn-danger flex-fill .mt-1">Encrypt</button>
<button id="rsaDecryptButton" type="button"
class="btn btn-primary flex-fill .mt-1">Decrypt</button>
</div>
</div>
</form>
<!--HASHING-->
<form class="conainer form-container hidden" id="hashForm">
<div class="form-group">
<label for="inputText">Message</label>
<textarea type="text" class="form-control message" id="hashMessageInput"
placeholder="Your message..."></textarea>
</div>
<hr class="dotted">
<div class="form-group">
<label for="inputText">MD5</label>
<textarea type="text" class="form-control" id="md5MessageInput"
placeholder="MD5 result..."></textarea>
</div>
<div class="form-group">
<label for="inputText">SHA-1</label>
<textarea type="text" class="form-control" id="sha1MessageInput"
placeholder="SHA-1 result..."></textarea>
</div>
<div class="form-group">
<label for="inputText">SHA-256</label>
<textarea type="text" class="form-control" id="sha256MessageInput"
placeholder="SHA-256 result..."></textarea>
</div>
<div class="form-group">
<label for="inputText">SHA-512</label>
<textarea type="text" class="form-control" id="sha512MessageInput"
placeholder="SHA-512 result..."></textarea>
</div>
<div class="form-group">
<label for="inputText">SHA-3</label>
<textarea type="text" class="form-control" id="sha3MessageInput"
placeholder="SHA-3 result..."></textarea>
</div>
</form>
<!--AES-->
<form class="conainer form-container hidden" id="aesForm">
<div class="form-group">
<label for="inputText">Secret Passphrase</label>
<input type="text" class="form-control" pattern="/^[A-Za-z]+$/" min="8" max="16" id="aesPassphrase"
placeholder="Min 8, max 16 chars...">
</div>
<div class="form-group">
<label for="inputText">Message</label>
<textarea disabled type="text" class="form-control message" id="aesDesMessageInput"
placeholder="Message..."></textarea>
</div>
<hr class="dotted">
<div class="form-group">
<label for="inputText">AES</label>
<textarea disabled type="text" class="form-control" id="aesMessageInput"
placeholder="AES result..."></textarea>
</div>
<div class="form-group">
<label for="inputText">DES</label>
<textarea disabled type="text" class="form-control" id="desMessageInput"
placeholder="DES result..."></textarea>
</div>
<div class="form-group">
<label for="inputText">Triple DES</label>
<textarea disabled type="text" class="form-control" id="tripleDesMessageInput"
placeholder="Triple DES result..."></textarea>
</div>
</form>
<!--BLOWFISH-->
<form class="conainer form-container hidden" id="blowfishForm">
<div class="form-group">
<label for="inputText">Encryption Password</label>
<input type="text" class="form-control" id="blowfishPassword" placeholder="Password...">
</div>
<div class="form-group">
<label for="inputText">Message</label>
<textarea disabled type="text" class="form-control message" id="blowfishMessageInput"
placeholder="Password needed..."></textarea>
</div>
<div class="d-flex cipher-buttons">
<button disabled id="blowfishEncryptButton" type="button"
class="btn btn-danger flex-fill .mt-1">Encrypt</button>
<button disabled id="blowfishDecryptButton" type="button"
class="btn btn-primary flex-fill .mt-1">Decrypt</button>
</div>
</form>
<!--MESSAGE SYSTEMS-->
<hr class="dotted">
<div class="integration-container" id="whatsAppContainer">
<img src="./assets/WhatsApp.png" width="80px" />
<input type="tel" pattern="[0-9]{3}-[0-9]{3}-[0-9]{4}" class="form-control" id="whatsappInput"
placeholder="Enter the receiver phone number (e.g 0359100000000)">
<button id="sendWhatsappBtn" type="button" class="btn btn-primary btn-block">Send</button>
</div>
<div class="integration-container" id="mailContainer">
<img src="./assets/mail.png" width="80px" />
<input type="email" id="emailInput" name="myGeeks" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$"
class="form-control" placeholder="Recipient email...">
<button id="sendEmailBtn" type="button" class="btn btn-primary btn-block">Send</button>
</div>
</div>
</div>
<div id="loginDialog" class="dialogue">
<div id="loginForms" class="card card-body bg-light text-black-50 container d-flex flex-column">
<ul class="nav nav-tabs bg-light text-black-50">
<li class="nav-item">
<p class="nav-link active" id="loginTabBtn">Login</p>
</li>
<li class="nav-item">
<p class="nav-link" id="regTabBtn">Register</p>
</li>
</ul>
<form class="conainer form-container d-flex flex-column p-3 show" id="loginForm">
<div class="form-group">
<label for="inputText">Email</label>
<input type="email" class="form-control" id="userEmail" placeholder="Email...">
</div>
<div class="form-group">
<label for="inputText">Password</label>
<input type="password" class="form-control" id="userPassword">
</div>
<div class="d-flex d-flex flex-column justify-content-center">
<button id="forgotPass" type="button" class="btn btn-link text-left">Forgot password?</button>
</div>
<div class="d-flex cipher-buttons d-flex flex-column">
<button id="loginBtn" type="button" class="btn btn-primary flex-fill .mt-1">LOGIN</button>
<button id="loginCancelBtn" type="button" class="btn btn-danger flex-fill .mt-1">CANCEL</button>
</div>
</form>
<form class="conainer form-container d-flex flex-column p-3" id="registerForm">
<div class="form-group">
<label for="inputText">Email</label>
<input type="email" class="form-control" id="userEmailReg" placeholder="Email...">
</div>
<div class="form-group">
<label for="inputText">Password</label>
<input type="password" class="form-control" id="userPasswordReg">
</div>
<div class="form-group">
<label for="inputText">Repeat Password</label>
<input type="password" class="form-control" id="userRepeatPassword">
</div>
<div class="d-flex cipher-buttons d-flex flex-column">
<button id="registerBtn" type="button" class="btn btn-primary flex-fill .mt-1">REGISTER</button>
<button id="regCancelBtn" type="button" class="btn btn-danger flex-fill .mt-1">CANCEL</button>
</div>
</form>
</div>
<div id="logoutBtnCont" class="d-flex cipher-buttons d-flex flex-column hidden">
<div class="user-id" id="userid"></div>
<button id="logoutBtn" type="button" class="btn btn-danger flex-fill .mt-1">LOGOUT</button>
<button id="cancelLogout" type="button" class="btn btn-link">CLOSE</button>
</div>
</div>
<div id="chatDialog" class="dialogue">
<div id="chatForm" class="card card-body bg-light text-black-50 container">
<div class="conainer d-flex flex-column p-3 show chat-container" id="loginForm">
<ul id="chatMsgContainer" class="chat-messages"></ul>
<div class="form-group d-flex">
<select class="form-control" id="userIds">
<option disabled selected>User id...</option>
</select>
<span class="p-1"></span>
<select class="form-control" id="encryptionMode">
<option disabled selected>Encryption mode...</option>
<option>AES</option>
<option>DES</option>
<option>Triple DES</option>
<option>BlowFish</option>
</select>
</div>
<div class="form-group">
<input type="text" class="form-control" id="chatMessagePassphrase" placeholder="Passphrase...">
</div>
<div class="form-group">
<textarea type="text" class="form-control message" id="chatMessage"
placeholder="Message..."></textarea>
</div>
<div class="d-flex cipher-buttons d-flex flex-column hidden">
<button id="encryptSend" type="button" class="btn btn-primary flex-fill .mt-1">ENCRYPT &
SEND</button>
<button id="closeChatBtn" type="button" class="btn btn-danger flex-fill .mt-1">CLOSE</button>
</div>
</div>
</div>
</div>
</body>
</html>