-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
28 lines (26 loc) · 1.13 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Crypto GeoFence</title>
<link rel="stylesheet" href="static/style.css"/>
</head>
<body>
<h3>Crypto GeoFence</h3>
<button id="geo" disabled="disabled">Share Location</button>
<p>Your location will be submitted to the secret geo fence processor.</p>
<p>By encrypting your location, the server will not know your location, or if you are inside the geofence.</p>
<p>The server does run math on the coordinates and allows you to decrypt the result: whether you are in the geofence or not.</p>
<hr/>
<ol>
<li>Generate public key: <span id="key"></span></li>
<li>Client geolocation: <span id="clientgeo"></span></li>
<li>Encrypted lat/lng: <div id="encryptlat"></div><div id="encryptlng"></div></li>
<li>Server response: <span id="response"></span></li>
<li>Decrypted result: <span id="result"></span></li>
</ol>
<script src="//ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<script src="/static/client-crypto.js"></script>
<script src="/static/client-ui.js"></script>
</body>
</html>