-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
38 lines (32 loc) · 1.11 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
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<p> Look in the console </p>
<label for="filePicker">Plaintext File</label>
<input id="filePicker" type="file"></input>
<label for="fileDecrypt">Encrypted File</label>
<input id="fileDecrypt" type="file"></input>
<div>
<a id="downloadLink">Download</a>
</div>
<div>
<label for="password">Passkey (a secure passkey will be generated for you, use it to decrypt a file)</label>
<input id="password" type="text" value=""></input>
</div>
<div>
<p>
This is toy example, it encrypts and decrypts files, but it doesn't properly store the tag information
(meaning you cannot accurately authenitcate the data), nor does it account for padding, nor does it preserve metadata.
If you want all that check out:
<a href="http://cryptic.io">cryptic.io</a>
</p>
<p>
The main purpose behind this is to demonstrate the power of the Servant Library. It's pretty sweet!
</p>
</div>
</body>
<script src="sjcl.js" ></script>
<script src="main.js" ></script>
</html>