forked from gautamnaman/emailencsystem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
88 lines (86 loc) · 2.47 KB
/
popup.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
<html>
<head>
<script type="text/javascript" src="resources/js/openpgp.js"></script>
<script type="text/javascript" src="keyring.js"></script>
<link rel="stylesheet" href="resources/css/bootstrap.css" />
</head>
<body style="width: 550px">
<h3><center>Email Encrytion System</center></h3>
<h5><center>(For research purposes)</center></h5>
<div id="keyring" class="container" style="margin: 10px">
<div id="public">
<h4>Public Keys:</h4>
<div id="pubEmails"></div>
</div>
<div id="private">
<h4>Private Keys:</h4>
<div id="privEmails"></div>
</div>
<div id="keySaveForm">
<div class="form-group">
<label for="keySave"><h4>Save Key:</h4></label>
<input
class="form-control keySave"
style="margin: 5px"
type="text"
placeholder="Name"
name="name"
/>
<input
class="form-control keySave"
style="margin: 5px"
type="email"
placeholder="Email"
name="email"
/>
<textarea
class="form-control keySave"
style="margin: 5px"
type="text"
placeholder="Public Key"
name="pubKey"
></textarea>
<textarea
class="form-control keySave"
style="margin: 5px"
type="text"
placeholder="Private Key (optional)"
name="privKey"
></textarea>
</div>
<button id="keySaveButton" type="button" class="btn btn-primary">
Save
</button>
</div>
<div id="keyGenForm">
<div class="form-group">
<label for="keyGen"><h4>Generate Key Pair:</h4></label>
<input
class="form-control keyGen"
style="margin: 5px"
type="text"
placeholder="Name"
name="name"
/>
<input
class="form-control keyGen"
style="margin: 5px"
type="email"
placeholder="Email"
name="email"
/>
<input
class="form-control keyGen"
style="margin: 5px"
type="password"
placeholder="Passphrase"
name="passphrase"
/>
</div>
<button id="keyGenButton" type="button" class="btn btn-primary">
Generate
</button>
</div>
</div>
</body>
</html>