-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
57 lines (44 loc) · 2.52 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
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<!-- Metadata -->
<meta charset="utf-8" />
<meta name="author" content="Jacob Strieb" />
<meta name="description" content="Password protect links using AES in the browser." />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<title>Link Lock - Password-protect links</title>
<!-- Styles -->
<link rel="stylesheet" href="style.css" type="text/css" />
<!-- Scripts -->
<script type="text/javascript" src="b64.js"></script>
<script type="text/javascript" src="api.js"></script>
<script type="text/javascript" src="index.js"> </script>
</head>
<body onload="main()">
<!-- Explanation for those who do not have JavaScript enabled -->
<noscript>
<div class="red-border">
<p>If you are seeing this, it means that you have JavaScript disabled. Please enable JavaScript to access the locked link.</p>
<p>This application is entirely programmed in JavaScript. This was done intentionally, so that all encryption and decryption happens client-side. This means the code runs as a distributed application, relying only on GitHub Pages for infrastructure. It also means that no data about locked links is ever stored on a server. The code is designed to be auditable so users can investigate what is happening behind the scenes.</p>
<p>If you still want to run the application, I encourage you to clone the <a href="https://github.com/aminulislamontor/link-lock">source code on GitHub</a>. That way you can disable JavaScript only for trusted files on your local machine.</p>
</div>
</noscript>
<div class="form" style="display: none">
<p>Please enter the password to unlock the link.</p>
<p id="hint"></p>
<hr />
<label for="password">password</label>
<input type="password" id="password" autofocus />
<button id="unlockbutton">Unlock link</button>
</div>
<!-- Display errors in a big red box -->
<div class="error red-border" style="display: none">
<p id="errortext">Error</p>
<button onclick="main()">Try again</button>
<a href="https://link.myprivatemessaging.com/"><button>Lock a link</button></a>
<a href="https://link.myprivatemessaging.com/decrypt/" id="no-redirect" target="_blank"><button>Decrypt without redirect</button></a>
<!-- <a href="https://link.myprivatemessaging.com/hidden/" id="hidden" target="_blank"><button>Create hidden bookmark</button></a> -->
</div>
</body>
</html>