-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
222 lines (193 loc) · 7.88 KB
/
index.html
File metadata and controls
222 lines (193 loc) · 7.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
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cryptography Visualization Tool</title>
<style>
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
background-color: #f5f5f5;
padding: 20px;
color: #333;
}
.container {
max-width: 1200px;
margin: 0 auto;
background-color: white;
border-radius: 10px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
padding: 30px;
}
h1 {
text-align: center;
margin-bottom: 30px;
color: #2c3e50;
}
.intro {
text-align: center;
margin-bottom: 40px;
max-width: 800px;
margin-left: auto;
margin-right: auto;
line-height: 1.6;
}
.categories {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
margin-bottom: 40px;
}
.category {
background-color: #f8f9fa;
border-radius: 10px;
padding: 20px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.category h2 {
color: #2c3e50;
margin-bottom: 15px;
padding-bottom: 10px;
border-bottom: 2px solid #e9ecef;
}
.algorithms {
display: grid;
grid-template-columns: 1fr;
gap: 15px;
}
.algorithm {
background-color: white;
border: 1px solid #e9ecef;
border-radius: 8px;
padding: 15px;
transition: all 0.3s ease;
cursor: pointer;
display: flex;
flex-direction: column;
}
.algorithm:hover {
transform: translateY(-5px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
border-color: #3498db;
}
.algorithm h3 {
color: #3498db;
margin-bottom: 10px;
}
.algorithm p {
font-size: 14px;
color: #6c757d;
margin-bottom: 15px;
flex-grow: 1;
}
.algorithm-btn {
background-color: #3498db;
color: white;
border: none;
padding: 8px 15px;
border-radius: 5px;
cursor: pointer;
font-size: 14px;
transition: background-color 0.3s;
align-self: flex-start;
}
.algorithm-btn:hover {
background-color: #2980b9;
}
.footer {
text-align: center;
margin-top: 40px;
padding-top: 20px;
border-top: 1px solid #e9ecef;
color: #6c757d;
font-size: 14px;
}
@media (max-width: 768px) {
.container {
padding: 15px;
}
.categories {
grid-template-columns: 1fr;
}
}
</style>
</head>
<body>
<div class="container">
<h1>Cryptography Visualization Tool</h1>
<div class="intro">
<p>Welcome to the Cryptography Visualization Tool! This interactive platform helps you understand various encryption and decryption techniques through step-by-step visualizations. Select a cryptographic method below to get started.</p>
</div>
<div class="categories">
<div class="category">
<h2>Substitution Ciphers</h2>
<div class="algorithms">
<div class="algorithm">
<h3>Caesar Cipher</h3>
<p>A simple substitution cipher where each letter is shifted by a fixed number of positions.</p>
<button class="algorithm-btn" onclick="window.location.href='caesar.html'">Visualize</button>
</div>
<!-- <div class="algorithm">
<h3>Playfair Cipher</h3>
<p>Encrypts pairs of letters using a 5×5 matrix based on a keyword.</p>
<button class="algorithm-btn" onclick="window.location.href='playfair.html'">Visualize</button>
</div> -->
<div class="algorithm">
<h3>Vigenère Cipher</h3>
<p>Uses a keyword to determine different Caesar shifts for each letter position.</p>
<button class="algorithm-btn" onclick="window.location.href='vigenere.html'">Visualize</button>
</div>
<div class="algorithm">
<h3>Hill Cipher</h3>
<p>Uses matrix multiplication for encryption and decryption of letter pairs or triplets.</p>
<button class="algorithm-btn" onclick="window.location.href='hill.html'">Visualize</button>
</div>
</div>
</div>
<div class="category">
<h2>Transposition Ciphers</h2>
<div class="algorithms">
<div class="algorithm">
<h3>Rail Fence Cipher</h3>
<p>Writes text in a zigzag pattern across multiple "rails" and reads off by rows.</p>
<button class="algorithm-btn" onclick="window.location.href='railfence.html'">Visualize</button>
</div>
</div>
</div>
<div class="category">
<h2>Modern Algorithms</h2>
<div class="algorithms">
<div class="algorithm">
<h3>DES (Data Encryption Standard)</h3>
<p>A symmetric-key block cipher that uses a 56-bit key for encryption.</p>
<button class="algorithm-btn" onclick="window.location.href='des.html'">Visualize</button>
</div>
<div class="algorithm">
<h3>RSA Algorithm</h3>
<p>A public-key cryptosystem widely used for secure data transmission.</p>
<button class="algorithm-btn" onclick="window.location.href='rsa.html'">Visualize</button>
</div>
<div class="algorithm">
<h3>Diffie-Hellman Key Exchange</h3>
<p>A method for securely exchanging cryptographic keys over a public channel.</p>
<button class="algorithm-btn" onclick="window.location.href='diffie-hellman.html'">Visualize</button>
</div>
<div class="algorithm">
<h3>SHA-1 (Secure Hash Algorithm)</h3>
<p>A cryptographic hash function that produces a 160-bit hash value.</p>
<button class="algorithm-btn" onclick="window.location.href='sha1.html'">Visualize</button>
</div>
</div>
</div>
</div>
<div class="footer">
<p>Built with ❤️ (and a little chaos) by NARAYAN and MANAS!!</p>
</div>
</div>
</body>
</html>