-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex2.html
447 lines (443 loc) · 16.8 KB
/
index2.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
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
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
<!DOCTYPE html>
<html lang="en">
<head>
<!-- basic -->
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<!-- mobile metas -->
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="viewport" content="initial-scale=1, maximum-scale=1" />
<!-- site metas -->
<title>MPC - Final Project</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta name="author" content="" />
<!-- bootstrap css -->
<link rel="stylesheet" href="css/bootstrap.min.css" />
<!-- style css -->
<link rel="stylesheet" href="css/style.css" />
<!-- Responsive-->
<link rel="stylesheet" href="css/responsive.css" />
<!-- fevicon -->
<link rel="icon" href="images/favicon_modified.ico" type="image/gif" />
<!-- Scrollbar Custom CSS -->
<link rel="stylesheet" href="css/jquery.mCustomScrollbar.min.css" />
<!-- Tweaks for older IEs-->
<link
rel="stylesheet"
href="https://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css"
/>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.5/jquery.fancybox.min.css"
media="screen"
/>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script
><![endif]-->
<style type="text/css">
#mynetwork {
width: 600px;
height: 400px;
border: 1px solid lightgray;
}
</style>
<script
type="text/javascript"
src="https://unpkg.com/vis-network/standalone/umd/vis-network.min.js"
></script>
</head>
<!-- body -->
<body class="main-layout">
<!-- loader -->
<div class="loader_bg">
<div class="loader"><img src="images/loading.gif" alt="#" /></div>
</div>
<!-- end loader -->
<!-- header -->
<header>
<!-- header inner -->
<div class="header">
<div class="container-fluid">
<div class="row">
<div class="col-xl-3 col-lg-3 col-md-3 col-sm-3 col logo_section">
<div class="full">
<div class="center-desk">
<div class="logo">
<a href="index.html"
><img src="images/MPC.png" style="width: 100px" alt="#"
/></a>
</div>
</div>
</div>
</div>
<div class="col-xl-9 col-lg-9 col-md-9 col-sm-9">
<nav class="navigation navbar navbar-expand-md navbar-dark">
<button
class="navbar-toggler"
type="button"
data-toggle="collapse"
data-target="#navbarsExample04"
aria-controls="navbarsExample04"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarsExample04">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="#services">About Us </a>
</li>
<!-- <li class="nav-item">
<a class="nav-link" href="#work"> Our Work</a>
</li> -->
</ul>
</div>
</nav>
</div>
</div>
</div>
</div>
</header>
<!-- end header inner -->
<!-- end header -->
<!-- banner -->
<section
class="banner_main"
style="background-image: url(../images/banner_modified.jpg)"
>
<div class="container-fluid">
<div class="row d_flex">
<div class="col-md-7">
<div class="text-bg-bob text-bg">
<div class="padding_lert">
<i><img src="images/logo_modified.png" alt="#" /></i>
<h1>Multi Party <br />Computation</h1>
<a href="#services">Read More</a>
</div>
</div>
</div>
<div class="col-md-5 bah">
<!-- <div class="bann_img">
<figure><img width="400px" src="images/bann_img.png" alt="#"/></figure>
</div> -->
</div>
</div>
</div>
</section>
<!-- end banner -->
<!-- service -->
<div id="services" class="service">
<div class="container-fluid">
<div class="row d_flex">
<div class="col-md-5">
<div class="service_img">
<figure><img src="images/lock.png" alt="#" /></figure>
</div>
</div>
<div class="col-md-7">
<div class="titlepage">
<h2>
Secure Set Union Algorithm - safe calculation of two MPC
participants
</h2>
<span>
<p>
The algorithm adeptly merges clusters of numerical data for
two users. In this process, each party unveils a portion of
the necessary information for computation, ultimately
achieving a united set of their respective data groups. With
the El-Gamal encryption system, the participants encrypt their
responses, aiding in the calculation of the final united
group.
</p>
<p>
So, what does secure computation look like in this context?
</p>
<ul>
<li>
When a participant has a number that falls within the union,
they are unaware of whether that number is also present on
the other party's side.
</li>
<li>
For instance, consider two hospitals aiming to share their
test results for an ongoing research study. They strive to
disclose the least possible amount of patient-related
medical information while still utilizing their files.
</li>
</ul>
<p>
By employing this secure union approach, the hospitals can
perform a more comprehensive analysis of results without
needing direct access to any patient files or understanding
the specifics of the other hospital's patients.
</p>
<p>
This safe computation method represents a marked improvement
in efficiency for the 'union of groups' problem compared to
traditional protocols. It provides a robust solution for the
safe calculation of problems, revolutionizing the way we
handle sensitive information.
</p>
</span>
<!-- <a class="read_more" href="Javascript:void(0)">Read More</a> -->
</div>
</div>
</div>
</div>
</div>
<!-- end service -->
<!-- solutions -->
<div class="solutions">
<div class="container">
<div class="row d_flex">
<div class="col-md-7">
<div class="titlepage">
<h2>
Finding the Shortest Path in a Graph - <br />
A Secure Calculation for Two Participants
</h2>
<span>
<p>
This algorithm takes two identical graphs with differing edge
weights. It securely computes the union of these graphs into a
minimal graph, providing the answer to both parties.
Crucially, through the secure computation, neither party gains
any additional information about the other, beyond what is
depicted in the unified graph.
</p>
<p>
To execute the algorithm, we utilized secure computation for
uniting groups and finding the minimal value within the group.
</p>
<ul>
<li>
For instance, consider two delivery companies contemplating
a collaboration. Each company possesses a weighted graph
illustrating the cost of line operation.
</li>
<li>
While both companies wish to understand the benefits of a
potential merger via the unified graph, they are keen on not
revealing cost details of their lines that could advantage
the competitor (if cheaper).
</li>
</ul>
<p>
Following a secure merger, the companies receive an optimized
map detailing the best operating costs for each line in case
of collaboration, all without revealing any additional
information about individual line operation costs.
</p>
<p>
This secure computation algorithm signifies an improvement in
efficiency for the 'finding the shortest path' problem,
compared to traditional protocols. It provides a solution for
secure computation of problems, innovating the way we deal
with data (Yao).
</p></span
>
<!-- <a class="read_more" href="Javascript:void(0)">Read More</a> -->
</div>
</div>
<div class="col-md-5">
<div class="solutions_img">
<figure><img src="images/solusan.png" alt="#" /></figure>
</div>
</div>
</div>
</div>
</div>
<!-- end solutions -->
<!-- work -->
<div id="work" class="work">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="titlepage">
<h3 class="styled-union">Union</h3>
<div style="display: flex; justify-content: space-between">
<!-- Left content (Settings and Buttons) -->
<div style="flex: 1; margin-right: 30px; padding: 20px">
<span
style="
display: block;
margin-bottom: 20px;
font-size: 16px;
line-height: 1.5;
"
>
Insert List of numbers to be calculated. The algorithm will
calculate the union of the two lists and return the result
to both parties.
</span>
<div
style="
display: flex;
flex-direction: column;
gap: 20px;
align-items: center;
"
>
<button
id="sendDefaultData"
class="outline-button"
style="
padding: 10px 50px;
font-size: 16px;
margin-bottom: 20px;
"
>
Click Me to send the message [1,2,5] to Bob
</button>
<div
style="
width: 100%;
display: flex;
flex-direction: row;
gap: 15px;
align-items: center;
"
>
<label
for="message"
style="
font-size: 16px;
display: block;
margin-bottom: 10px;
"
>
Message:
</label>
<input
type="text"
id="union_message"
name="message"
value="5,7,9"
style="
margin: 0 auto;
width: 55%;
padding: 10px;
font-size: 16px;
"
/>
<button
class="outline-button"
id="unionData"
style="padding: 10px 20px; font-size: 16px"
>
Send Data
</button>
</div>
</div>
</div>
<!-- Right content (data-div) -->
<div style="flex: 1; margin-left: 20px">
<div class="flexc">
<div id="data-div" class="hidden floating-div"></div>
</div>
</div>
</div>
<h3 class="styled-union" style="margin-top: 50px">
All Pairs Shortest Path
</h3>
<div style="display: flex; justify-content: space-between">
<!-- Left content (Result) -->
<div style="flex: 1; margin-right: 20px">
<h4 id="result">Public Graph:</h4>
<div id="mynetworkresult"></div>
</div>
<!-- Right content (Settings and Controls) -->
<div style="flex: 1; margin-left: 20px">
<div class="flexc">
<button
class="outline-button"
id="sendGraph"
style="margin-top: 50px"
>
Click Me To Start Graph Calculation
</button>
<div id="network-container">
<div id="mynetwork"></div>
<div
style="
display: flex;
flex-direction: row;
justify-content: space-around;
margin-top: 5px;
"
>
<button class="outline-button" onclick="addNode()">
Add Node
</button>
<button class="outline-button" onclick="addEdge()">
Add Edge
</button>
<button class="outline-button" onclick="removeNode()">
Remove Node
</button>
<button class="outline-button" onclick="removeEdge()">
Remove Edge
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row"></div>
</div>
</div>
<!-- end work -->
<!-- footer -->
<footer>
<div class="footer">
<div class="container">
<div class="row">
<!-- The code is open source and available on GitHub. The repository includes detailed documentation. -->
<div class="col-md-12">
<div class="cont">
<h1 style="color: white">
The Code is and Open Source Project <br />View it on GitHub
</h1>
<span>
<a
href="https://github.com/Dolev-Dublon/Final-Project-Multiple-Party-Computation-Cryptograpy"
>
<img
src="images/github.png"
alt="Github logo"
style="filter: invert(1)"
/>
</a>
</span>
</div>
</div>
</div>
</div>
<div class="copyright" style="background: #21066e">
<div class="container">
<div class="row">
<div class="col-md-12">
<p>Copyright 2023 All Right Reserved.</p>
</div>
</div>
</div>
</div>
</div>
</footer>
<!-- end footer -->
<!-- Javascript files-->
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.bundle.min.js"></script>
<script src="js/jquery-3.0.0.min.js"></script>
<script src="js/jquery.mCustomScrollbar.concat.min.js"></script>
<script src="js/custom.js"></script>
<script src="index2.js"></script>
</body>
</html>