-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
37 lines (32 loc) · 1.49 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
<!doctype html>
<html>
<head>
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<link rel="stylesheet" href="https://assets.emblstatic.net/vf/v2.5.14/css/styles.css">
</head>
<body>
<h1>crypt4gh browser demo</h1>
<p><strong>This is a proof of concept to test client-side encryption of genomic data.</strong> It requires a modern version of a chromium-based browser (e.g. Google Chrome/Microsoft Edge).</p>
<p>No data is transferred from your computer. All work happens on your local computer, in the web browser.</p>
<h2>Encrypt your genomes</h2>
<details>
<h2>Recipient key</h2>
<textarea id="pubkey" cols="45" rows="3" style="overflow:hidden;resize:none">
-----BEGIN CRYPT4GH PUBLIC KEY-----
HzBf8nOoIXnr7H9Yiqypgr7CV2yJkliU6K+2vHYxFQo=
-----END CRYPT4GH PUBLIC KEY-----
</textarea>
<p>The sender's key (you) will be randomly generated.</p>
</details>
<h3>1. Grant permission to read and edit files in a local directory</h3>
<button id="mount">Grant permission</button>
<h3>2. Select a file you want to encrypt</h3>
<button id="select" disabled="true">Select file</button>
<h3>3. Save the new encrypted file</h3>
<button id="encrypt" disabled="true">Encrypt</button>
<script type="module" src="consumer.js"></script>
<p>Check the developer console (F12) to see if encryption has finished. </p>
<p>A 300MB file takes about 10 seconds to encrypt. A 1GB file will take about 30 seconds to encrypt.</p>
<p>Files larger than this probably won't work currently.</p>
</body>
</html>