-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
87 lines (76 loc) · 3.34 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!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="css/styles.css">
<title>Hight Cipher</title>
</head>
<body>
<div class="toggle-container">
<button class="toggle-btn">☰ OPTIONS </button>
<div class="dropdown">
<div class="dropdown-content">
<a href="index.html">HIGHT CLASSIC</a>
<a href="html/ECBmode.html">ECB mode</a>
<a href="html/CBCmode.html">CBC mode</a>
<a href="html/plain_ECBmode.html">Plaintext ECB</a>
<a href="html/plain_CBCmode.html">Plaintext CBC</a>
<a href="html/about.html">About & Reference</a>
</div>
</div>
</div>
<header class="header">
<h1 class="header-title">Hight Cipher Classic</h1>
</header>
<div class="container">
<div class="left-panel">
<h2>Encryption</h2>
<div class="input-group">
<label for="plaintext">Plain Text (64-bit hexadecimal):</label>
<input type="text" id="encryptPlainText" placeholder="Enter plaintext...">
</div>
<div class="input-group">
<label for="encryptKey">Key (128-bit hexadecimal):</label>
<input type="text" id="encryptKey" placeholder="Enter key...">
</div>
<button class="action-button" onclick="start_enc()">Encrypt</button>
<div class="display" id="encryptionResult"></div>
</div>
<div class="separator"></div>
<div class="right-panel">
<h2>Decryption</h2>
<div class="input-group">
<label for="ciphertext">Cipher Text (64-bit hexadecimal):</label>
<input type="text" id="cipherText" placeholder="Enter ciphertext...">
</div>
<div class="input-group">
<label for="decryptKey">Key (128-bit hexadecimal):</label>
<input type="text" id="decryptKey" placeholder="Enter key...">
</div>
<button class="action-button" onclick="start_dec()">Decrypt</button>
<div class="display" id="decryptionResult"></div>
</div>
</div>
<div class="about">
<center><div class="info-box">
<p>
<strong>Hight Classic Cipher Information</strong><br>
- The user input for the key should be 128 bits and in hexadecimal format.<br>
- The user input for plaintext or ciphertext should be 64 bits and in hexadecimal format.<br>
- The value of plaintext or ciphertext should not exceed 64 bits. If you need to encrypt data larger than 64 bits, consider using ECB or CBC modes.<br>
</p>
<p>
<strong>Hexadecimal Value Input</strong><br>
Hexadecimal values can be input with or without spaces between the characters.<br>
</p>
<p>
<strong>Example:</strong><br>
Key: 00112233445566778899aabbccddeeff<br>
Plaintext: 0000000000000000<br>
Ciphertext: 00f418aed94f03f2
</p>
</div></center></div>
<script src="js/classic.js"></script>
</body>
</html>