-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
25 lines (23 loc) · 863 Bytes
/
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
<!-- page-encryptor (https://github.com/steinbro/page-encryptor)
Copyright (c) 2019 Daniel W. Steinbrook -->
<html>
<meta charset="UTF-8" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.2/rollups/aes.js"></script>
<script src="data.js"></script>
<script type="text/javascript">
if (typeof data != 'undefined') {
var decoded = null;
while (decoded === null) {
var passphrase = prompt("Site password:")
try {
var decrypted = CryptoJS.AES.decrypt(data, passphrase);
decoded = decrypted.toString(CryptoJS.enc.Utf8);
} catch {
}
}
document.write(decoded);
} else {
document.write('No content found.')
}
</script>
</html>