-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
43 lines (43 loc) · 1.88 KB
/
index.html
File metadata and controls
43 lines (43 loc) · 1.88 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="src/front-end/style.css">
<title>Spatio Encrypter</title>
</head>
<body>
<div class="top page">
<div class="text-content big-text"><a href="http://github.com/Spatio-Byte/" target="_blank">SPATIO</a>-ENCRYPTER</div>
</div>
<div class="coded-result"></div>
<div class="text-content small-text" id="description-text">scripts made by me with the vigenere cipher <br>((i add to the cipher special characters for more security also spaces are encoded))</div>
<br>
<br>
<textarea name="text_entry" id="text-entry" placeholder="the message to ENCRYPT or DECRYPT" spellcheck="false" oninput="removeLeadingSpace1()"></textarea>
<br>
<textarea name="code-entry" id="code-entry" placeholder="the key for the ENCRYPTION/DECRYPTION" spellcheck="false" oninput="removeLeadingSpace2()"></textarea>
<script>
function removeLeadingSpace2() {
const textarea = document.getElementById('code-entry');
if (textarea.value.startsWith(' ')) {
textarea.value = textarea.value.trimStart();
}
}
function removeLeadingSpace1() {
const textarea = document.getElementById('text-entry');
if (textarea.value.startsWith(' ')) {
textarea.value = textarea.value.trimStart();
}
}
</script>
<div class="radio-list">
<input type="radio" name="mode" id="radio-text-coded" class="radio" checked> To ENCRYPTED
<input type="radio" name="mode" id="radio-coded-text" class="radio"> To DECRYPTED
</div>
<div class="uncode-decode-button">
<input type="button" value="ENCRYPT / DECRYPT" id="du-button">
</div>
<script src="src/back-end/decoder/decode.js"></script>
</body>
</html>