-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
executable file
·64 lines (56 loc) · 2.16 KB
/
index.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
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Shamir's Secret Sharing</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/simple-grid.css">
<script type="application/javascript" src="js/shamirs.js"></script>
<script type="application/javascript" src="js/main.js"></script>
</head>
<body>
<div class="container">
<div class="row">
<h1>Secret Sharing</h1>
<p>This page is used to split a password into multiple <em>shares</em> that individually do not reveal anything about the password. The original password can be reconstructed by combining a <em>threshold</em> of the shares together. For example, a password could be split into 4 shares where any 3 can be combined for recovery. <em>This page should only be accessed from a secure computer.</em></p>
</div>
<div class="row">
<div class="col-6">
<h2>Split</h2>
<form id="split-form" action="#">
<p>
<label for="n">Shares (<code>n</code>):</label>
<input name="n" type="number" value="4"></input>
</p>
<p>
<label for="m">Threshold (<code>m</code>):</label>
<input name="m" type="number" value="3"></input>
</p>
<p>
<label for="secret">Secret</label>
<textarea name="secret" rows="1"></textarea>
</p>
<button type="submit">Submit</button>
</form>
<div id="split-results"></div>
</div>
<div class="col-6">
<h2>Combine</h2>
<form id="combine-form" action="#">
<p>
<label for="m">Threshold (<code>m</code>):</label>
<input name="m" type="number" value="3"></input>
</p>
<div id="combine-inputs"></div>
<button type="submit">Submit</button>
</form>
<div id="combine-result"></div>
</div>
</div>
</div>
</body>
</html>