-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
47 lines (46 loc) · 1.68 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
39
40
41
42
43
44
45
46
47
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="style.css" />
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>XORRY</title>
</head>
<body>
<div class="hexTo64">
<p>change hex string to base64</p>
<label for="hexInput">hex string:</label>
<input type="text" id="hexInput" />
<button id="convertButton">to base64</button>
<textarea id="base64Output" rows="4" cols="50" readonly></textarea>
</div>
<div class="fixedXor">
<p>enter 2 equal length buffers to produce an XOR combination</p>
<label for="input1">buffer 1:</label>
<input type="text" id="input1" />
<br />
<label for="input2">buffer 2:</label>
<input type="text" id="input2" />
<button onclick="calculateXOR()">to XOR</button>
<!-- <div id="result"></div> -->
<textarea id="result" rows="4" cols="50" readonly></textarea>
</div>
<div class="singleCharXor">
<p>loop through hex strings to detect single-character XOR</p>
<input type="file" id="fileInput" />
<button onclick="handleFile()">decode</button>
<textarea id="result2" rows="4" cols="50" readonly></textarea>
</div>
<div class="repeatingKeyXor">
<p>enter a key and some text to generate ciphertext</p>
<label for="key">key:</label><br />
<input type="text" id="key" /><br /><br />
<label for="plaintext">text:</label><br />
<textarea id="plaintext" rows="4" cols="50"></textarea><br />
<button onclick="encrypt()">Encrypt</button><br /><br />
<label for="ciphertext">your ciphertext:</label><br />
<textarea id="ciphertext" rows="4" cols="50" readonly></textarea>
</div>
<script src="script.js"></script>
</body>
</html>