-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
462 lines (408 loc) Β· 16.6 KB
/
index.html
File metadata and controls
462 lines (408 loc) Β· 16.6 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
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hash-One: Introduction</title>
<style>
body {
font-family: Arial, sans-serif;
line-height: 1.6;
margin: 0;
padding: 0;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: #333;
display: flex;
flex-direction: column;
min-height: 100vh;
}
/* Navigation Header */
.nav-header {
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
padding: 1rem 0;
position: sticky;
top: 0;
z-index: 100;
}
.nav-container {
max-width: 1200px;
margin: 0 auto;
display: flex;
justify-content: center;
align-items: center;
padding: 0 2rem;
}
.nav-links {
display: flex;
gap: 2rem;
list-style: none;
margin: 0;
padding: 0;
}
.nav-links a {
color: white;
text-decoration: none;
padding: 0.5rem 1rem;
border-radius: 25px;
transition: all 0.3s ease;
font-weight: 500;
background: rgba(255, 255, 255, 0.1);
}
.nav-links a:hover {
background: rgba(255, 255, 255, 0.2);
transform: translateY(-2px);
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.nav-links a.active {
background: rgba(255, 255, 255, 0.3);
font-weight: bold;
}
header {
background: rgba(51, 51, 51, 0.9);
backdrop-filter: blur(10px);
color: white;
padding: 2rem 0;
text-align: center;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.container {
width: 90%;
max-width: 1200px;
margin: auto;
overflow: hidden;
padding: 2rem 0;
flex-grow: 1;
}
.intro-box {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
padding: 2.5rem;
border-radius: 20px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
margin-bottom: 2rem;
}
.intro-box h1 {
color: #007bff;
text-align: center;
margin-bottom: 1.5rem;
font-size: 2.5em;
}
.intro-box p {
font-size: 1.1em;
text-align: justify;
margin-bottom: 1.5rem;
}
.intro-box h2 {
border-bottom: 3px solid #007bff;
padding-bottom: 0.5rem;
margin-top: 2.5rem;
color: #333;
font-size: 1.8em;
}
.features {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 25px;
margin: 2rem 0;
}
.feature-card {
background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
padding: 2rem;
border-radius: 15px;
border-left: 5px solid #007bff;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
transform: translateY(-5px);
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}
.feature-card h3 {
color: #007bff;
margin-top: 0;
font-size: 1.3em;
}
/* Workflow Diagram */
.workflow-section {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
padding: 2.5rem;
border-radius: 20px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
margin-bottom: 2rem;
text-align: center;
}
.workflow-diagram {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
gap: 20px;
margin: 2rem 0;
}
.workflow-step {
background: linear-gradient(135deg, #007bff, #0056b3);
color: white;
padding: 1.5rem;
border-radius: 15px;
min-width: 150px;
box-shadow: 0 10px 25px rgba(0, 123, 255, 0.3);
transition: transform 0.3s ease;
}
.workflow-step:hover {
transform: scale(1.05);
}
.workflow-arrow {
font-size: 2em;
color: #007bff;
margin: 0 10px;
}
.call-to-action {
text-align: center;
margin: 3rem 0 2rem 0;
padding: 3rem;
background: linear-gradient(135deg, #007bff, #0056b3);
border-radius: 20px;
color: white;
box-shadow: 0 20px 40px rgba(0, 123, 255, 0.3);
}
.call-to-action h2 {
color: white;
border: none;
margin-top: 0;
margin-bottom: 1rem;
font-size: 2.2em;
}
.button {
display: inline-block;
padding: 18px 36px;
background-color: white;
color: #007bff;
text-decoration: none;
border-radius: 30px;
font-size: 1.3em;
font-weight: bold;
transition: all 0.3s ease;
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
margin: 0 10px;
}
.button:hover {
background-color: #f8f9fa;
transform: translateY(-3px);
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}
.specifications {
background: linear-gradient(135deg, #e9ecef, #f8f9fa);
padding: 2rem;
border-radius: 15px;
margin: 2rem 0;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.spec-list {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 15px;
list-style: none;
padding: 0;
}
.spec-list li {
padding: 12px;
background: white;
border-radius: 8px;
font-weight: bold;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
transition: transform 0.2s ease;
}
.spec-list li:hover {
transform: translateY(-2px);
}
.note-box {
background: linear-gradient(135deg, #fff3cd, #ffeaa7);
color: #856404;
border: 1px solid #ffeeba;
padding: 1.5rem;
border-radius: 15px;
margin-bottom: 1.5rem;
text-align: left;
box-shadow: 0 8px 20px rgba(255, 193, 7, 0.2);
}
/* References Section */
.references-section {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
padding: 2.5rem;
border-radius: 20px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
margin-bottom: 2rem;
}
.references-section h2 {
color: #007bff;
border-bottom: 3px solid #007bff;
padding-bottom: 0.5rem;
}
.reference-item {
margin-bottom: 1rem;
padding: 1rem;
background: #f8f9fa;
border-radius: 8px;
border-left: 4px solid #007bff;
}
footer {
background: rgba(51, 51, 51, 0.9);
backdrop-filter: blur(10px);
color: white;
text-align: center;
padding: 2rem 0;
margin-top: auto;
}
@media (max-width: 768px) {
.container {
width: 95%;
padding: 1rem 0;
}
.intro-box, .workflow-section, .references-section {
padding: 1.5rem;
}
.nav-links {
flex-direction: column;
gap: 0.5rem;
text-align: center;
}
.workflow-diagram {
flex-direction: column;
}
.workflow-arrow {
transform: rotate(90deg);
}
.button {
display: block;
margin: 10px auto;
width: fit-content;
}
}
</style>
</head>
<body>
<!-- Navigation Header -->
<div class="nav-header">
<div class="nav-container">
<ul class="nav-links">
<li><a href="#" class="active">Introduction</a></li>
<li><a href="html/hashone_generator_final.html">Generator Tool</a></li>
<li><a href="#about">About Us</a></li>
</ul>
</div>
</div>
<header>
<h1>Hash-One: A Lightweight Cryptographic Hash Function</h1>
<p>Based on Sponge Construction with Non-Linear Feedback Shift Registers</p>
</header>
<div class="container">
<div class="intro-box">
<h1>Introduction to Hash-One</h1>
<p>Hash-One is a lightweight cryptographic hash function designed specifically for constrained devices such as RFID tags, wireless sensors, and other embedded systems. This implementation is based on the research paper published in IET Information Security by Bilal et al. (2016).</p>
<p>The function uses a <strong>sponge construction</strong> methodology, which involves two main phases: the <strong>absorbing phase</strong> where input file bits are mixed with the internal state, and the <strong>squeezing phase</strong> where the final fixed-length hash is extracted from the altered internal state.</p>
<h2>Key Features</h2>
<div class="features">
<div class="feature-card">
<h3>π§ Lightweight Design</h3>
<p>Optimized for constrained devices with minimal hardware requirements (1006 Gate Equivalents).</p>
</div>
<div class="feature-card">
<h3>π Strong Security</h3>
<p>Provides 80-bit security against collision attacks and 160-bit preimage resistance.</p>
</div>
<div class="feature-card">
<h3>π Avalanche Effect</h3>
<p>Even tiny changes in input result in completely different hash outputs.</p>
</div>
<div class="feature-card">
<h3>π§½ Sponge Construction</h3>
<p>Uses proven sponge methodology with non-linear feedback shift registers.</p>
</div>
</div>
<h2>Technical Specifications</h2>
<div class="specifications">
<ul class="spec-list">
<li>State Size: 161 bits</li>
<li>Hash Output: 160 bits</li>
<li>Capacity: 160 bits</li>
<li>Rate: 1 bit</li>
<li>Security Level: 80 bits</li>
<li>Hardware Area: 1006 GE</li>
</ul>
</div>
<h2>How It Works</h2>
<p>Hash-One utilizes two non-linear feedback shift registers (NFSRs) of sizes 80 and 81 bits. The security is based on a permutation function that updates these registers using carefully designed Boolean functions. The internal state is initialized with the first 161 bits of the mathematical constant Ο (pi), ensuring a strong cryptographic foundation.</p>
<p>The algorithm processes input files bit by bit, mixing them with the internal state through XOR operations. The avalanche effect ensures that even the smallest change in input produces a completely different hash output, making it ideal for integrity verification and digital document authentication.</p>
</div>
<!-- Workflow Diagram Section -->
<div class="workflow-section">
<h2>Hash-One Workflow</h2>
<div class="workflow-diagram">
<div class="workflow-step">
<h4>1. Initialize</h4>
<p>State with Ο bits</p>
</div>
<div class="workflow-arrow">β</div>
<div class="workflow-step">
<h4>2. Absorb</h4>
<p>Input file bits</p>
</div>
<div class="workflow-arrow">β</div>
<div class="workflow-step">
<h4>3. Process</h4>
<p>NFSR operations</p>
</div>
<div class="workflow-arrow">β</div>
<div class="workflow-step">
<h4>4. Squeeze</h4>
<p>160-bit hash output</p>
</div>
</div>
<div style="text-align: center; margin-top: 2rem;">
<a href="html/workflow_detailed.html" class="button" style="background: linear-gradient(135deg, #28a745, #20c997);color:black; box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);">
π Detailed Workflow Explanation
</a>
</div>
</div>
<div class="call-to-action">
<h2>Try Hash-One Generator!</h2>
<div class="note-box">
<strong>β οΈ Please Note:</strong> This implementation is a proof-of-concept and processes files bit-by-bit in the browser. For optimal performance, it is best suited for smaller files (less than 100 KB). Larger files may cause the browser to become unresponsive.
</div>
<p style="text-align: center;">Ready to generate secure hashes for your files? Click the button below to access the Hash-One generator tool.</p>
<a href="html/hashone_generator_final.html" class="button">π Go to Hash Generator</a>
</div>
<!-- References Section -->
<div class="references-section">
<h2>References</h2>
<div class="reference-item">
<strong>Primary Research Paper:</strong><br>
Bilal, M., Shabbir, M., Tahir, Y., Shah, T., Bashir, H., & Abbas, G. (2016). Hash-One: A lightweight cryptographic hash function. <em>IET Information Security</em>, <em>10</em>(5), 225-231. <a href="https://doi.org/10.1049/iet-ifs.2015.0385" target="_blank" style="color: #007bff;">https://doi.org/10.1049/iet-ifs.2015.0385</a>
</div>
<div class="reference-item">
<strong>Sponge Construction Reference:</strong><br>
Bertoni, G., Daemen, J., Peeters, M., & Van Assche, G. (2011). Cryptographic sponge functions. Submission to NIST (round 3).
</div>
</div>
<!-- About Us Section -->
<div class="intro-box" id="about">
<h2>About This Project</h2>
<p>This Hash-One implementation is developed as part of academic coursework at Amrita Vishwa Vidyapeetham, Coimbatore. The project demonstrates the practical implementation of lightweight cryptographic hash functions for educational and research purposes.</p>
<p><strong>Course Integration:</strong> This project is part of 20CYS202 - User Interface Design and 20CYS205 - Modern Cryptography, showcasing the intersection of cryptographic algorithms and user experience design.</p>
<p><strong>Educational Purpose:</strong> While this implementation follows the research specifications, it is primarily designed for educational demonstration. It should not be used in production cryptographic applications without further security analysis.</p>
</div>
</div>
<footer>
<p>
Copyright Β© 2023 | Deepak Kumar S<br>
B.Tech CSE(CYS)<br>
Part of 20CYS202 - User Interface Design and 20CYS205 - Modern Cryptography<br>
Amrita Vishwa Vidyapeetham, Coimbatore
</p>
</footer>
</body>
</html>