-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsubmit_task.html
More file actions
33 lines (32 loc) · 877 Bytes
/
submit_task.html
File metadata and controls
33 lines (32 loc) · 877 Bytes
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
<html>
<body>
<form name="subm" action = "http://localhost:8080/task/" method="GET">
<p>Key Fingerprint</p>
<input type="text" name="KeyFingerprint">
<p>Encrypted Key</p>
<input type="text" id="EncryptedKey_" oninput="encKey();">
<input type="text" name="EncryptedKey">
<p>Encrypted Task</p>
<input type="text" id="Encrypted_" oninput="enc();">
<input type="text" name="Encrypted">
<p>IV</p>
<input type="text" id="IV_" oninput="encIv();">
<input type="text" name="IV">
<input type="submit">
</form>
<script>
function enc()
{
document.subm.Encrypted.value = btoa(document.subm.Encrypted_.value);
}
function encKey()
{
document.subm.EncryptedKey.value = btoa(document.subm.EncryptedKey_.value);
}
function encIv()
{
document.subm.IV.value = btoa(document.subm.IV_.value);
}
</script>
</body>
</html>