-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdecrypt.html
63 lines (56 loc) · 1.62 KB
/
decrypt.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
62
63
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>self-decrypting-html-page</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta http-equiv="Content-Security-Policy"
content= "default-src 'none';script-src 'nonce-{{nonce}}';style-src 'nonce-{{nonce}}'"/>
<style nonce="{{nonce}}">
body {
margin: 0 auto; padding: 0 1em; max-width: 28em;
font-size: 110%; font-family: "Helvetica Neue", sans-serif;
}
p { color: #333; line-height: 1.3; }
a { color: #2980b9; text-decoration: none; }
input, button, textarea {
display: block; margin: 1em 0; box-sizing: border-box; width: 100%;
font-size: 100%;
}
input, textarea { padding: .4em; border: 1px solid #888; border-radius: .2em; }
input.error, textarea.error { border-color: #c0392b; }
button {
padding: .4em;
border: none; border-radius: .2em;
color: white; background-color: #2980b9;
cursor: pointer;
}
button:active { background-color: #1970a9; }
button.error { background-color: #c0392b; }
textarea { min-height: 7em; font-family: "Helvetica Neue", sans-serif; }
pre code {
display: block;
background-color: #ddd;
border-radius: .2em;
padding: .4em;
word-wrap: break-word;
word-break: break-all;
}
.hidden { display: none; }
#hint {
padding: .4em .5em; border-radius: .2em;
color: white; background-color: #c0392b;
}
</style>
</head>
<body>
<p>This file contains an encrypted message.</p>
<p id="hint" class="hidden"></p>
<input type="password" id="key" placeholder="Enter the key."/>
<button id="submit">decrypt the message</button>
<pre id="message" class="hidden"></pre>
{{nonce-script}}
{{encrypted}}
{{js}}
</body>
</html>