-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
61 lines (49 loc) · 1.89 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
<html>
<head>
<title>pass.js</title>
<link rel="stylesheet" type="text/css" href="reset.css">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<h1>pass.js</h1>
<label id="private_key_drop_area" class="drop-area" for="private_key_file_input">
<h2>Drop private key file here</h2>
<input type="file" id="private_key_file_input" />
<div id="key_password_area" style="display: none">
<label for="key_password">Key is encrypted, enter password to decrypt it</label>
<div>
<input type="password" id="key_password"/>
</div>
</div>
<div id="private_key_ok_notification" style="display: none">
Private key "<span id="private_key_filename"></span>" loaded
</div>
<div id="private_key_error_notification" style="display: none">
File is probably not containing a valid OpenPGP private key
</div>
</label>
<label id="encrypted_file_drop_area" class="drop-area" for="encrypted_file_file_input">
<h2>Drop encrypted file here</h2>
<input type="file" id="encrypted_file_file_input" />
<div id="encrypted_file_ok_notification" style="display: none">
Encrypted file "<span id="encrypted_file_filename"></span>" loaded
</div>
<div id="encrypted_file_error_notification" style="display: none">
File is probably not containing a valid OpenPGP encrypted message
</div>
</label>
<div id="decrypting_in_progress" style="display: none">
<h2>Decrypting...</h2>
</div>
<div id="decrypted_password_area" style="display: none">
<h2><label for="decrypted_password">Decrypted password</label></h2>
<input type="text" id="decrypted_password" readonly="readonly"/>
</div>
<div id="decrypted_data_area" style="display: none">
<h2><label for="decrypted_data">Decrypted data</label></h2>
<textarea id="decrypted_data" readonly="readonly" rows="10"></textarea>
</div>
<script src="openpgp.min.js"></script>
<script src="javascript.js"></script>
</body>
</html>