forked from box-lin/boxdbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
175 lines (156 loc) · 8.3 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="description" content="" />
<meta name="author" content="" />
<title>BoxDBox - Demo Page</title>
<link rel="icon" type="image/x-icon" href="assets/favicon.ico" />
<!-- Core theme CSS (includes Bootstrap)-->
<link href="css/styles.css" rel="stylesheet" />
</head>
<body id="page-top">
<!-- Navigation-->
<nav class="navbar navbar-expand-lg navbar-light bg-light fixed-top" id="mainNav">
<div class="container px-4">
<a class="navbar-brand" href="#page-top">
<img src="Document/icon.png" width="30" height="30" class="d-inline-block align-top" alt="">
BoxDBox
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ms-auto">
<li class="nav-item"><a class="nav-link" href="#download">Download</a></li>
<li class="nav-item"><a class="nav-link" href="#demo">Demo</a></li>
<li class="nav-item"><a class="nav-link" href="#design">Design</a></li>
<li class="nav-item"><a class="nav-link" href="#contact">Contact</a></li>
</ul>
</div>
</div>
</nav>
<!-- Header-->
<header class="bg-primary bg-light text-dark" >
<div class="container px-4 text-center">
<img src="Document/name.png" class="img-fluid" style="width:800px;height:200;" >
<p class="lead">Box and Unbox your file through Huffman Coding Algorithm and SHA256 Hashing</p>
<a class="btn btn-lg btn-info" href="#download">Get Started </a>
</div>
<br>
<br>
</header>
<!-- Download section-->
<section id="download">
<div class="container px-4">
<div class="row gx-4 justify-content-center">
<div class="col-lg-8">
<h2>Download</h2>
<p class="lead">
Cross Platform Run From Jar</p>
<ul>
<li><code> git clone https://github.com/boxianglin/BoxDBox.git</code></li>
<li>JDK 11 or above installed<code> https://www.oracle.com/java/technologies/downloads/</code></li>
<li><code>double click /Product/BoxDBox.jar</code></li>
</ul>
<p class="lead">
MAC dmg Available</p>
<ul>
<li>Clicke <a href="./Product/BoxDBox_Installler_macos_1.0.dmg"> here </a> to download</li>
<li>open <code>BoxDBox_Installler_macos_1.0.dmg</code> and copy <code>BoxDBox-Mac.app </code> to your chosen directory </li>
<li>doubly click <code>BoxDBox-Mac.app</code></li>
</ul>
<p class="lead">
Windows Installation Package</p>
<ul>
<li>Not Available Yet</li>
</ul>
</div>
</div>
</div>
</section>
<!-- demo section -->
<section id="demo" class="bg-light">
<div class="container px-4">
<div class="row gx-4 justify-content-center">
<div class="col-lg-8">
<h2>Demo</h2>
<p class="lead">
Watch the video below
<div class="ratio ratio-16x9">
<iframe src="https://www.youtube.com/embed/mNJJh97gk98" title="YouTube video" allowfullscreen></iframe>
</div>
</p>
</div>
</div>
</div>
</section>
<!-- Design section-->
<section id="design">
<div class="container px-4">
<div class="row gx-4 justify-content-center">
<div class="col-lg-8">
<h2>Software Design</h2>
<p class="lead">
BoxDBox uses Huffman Coding Algorithm and SHA256 Hashing to box and unbox your file.
In a high level, BoxDBox read bytes of your file and construct the huffman tree where
the huffman tree is constructed in a greedy mechanism such that the most frequent byte
should be positioned as a leaf node with the shortest path from the root. In this design,
the Huffman Tree is binary. The compressed bits of a byte data is derived from the path of
root to the leaf node, whereof the left traversal consider an append of '0' and right
traversal consider an append of '1'.
</p>
<p class="lead">
To track of a original byte with its compressed binary representation,
we uses a <code>HashMap<Byte,String></code> in which we called it
a Huffman Table. Finally, by referring to Huffman Table with the original
byte array we construct a Huffman Code String, a string with concatenations
of all compressed byte binary representation.
</p>
<p class="lead">
We serialize a packet that consists of Huffman Code String, Huffman Table, and a
SHA256 hashed secret key to the .box file. To unbox a file, we went through a
validation phase. In validation phase, we check the validity deserialization of
packet and verify the secret key by a hashing match.
</p>
<p class="lead">
<b> Architecture Diagram</b>
<img src="Document/newBox.drawio.png" class="img-fluid" >
</p>
<p class="lead">
<b> Graphical User Interfaces</b>
<br>
<img src="Document/apppic.png" class="img-fluid">
</p>
</div>
</div>
</div>
</section>
<!-- Contact section-->
<section id="contact" class="bg-light">
<div class="container px-4">
<div class="row gx-4 justify-content-center">
<div class="col-lg-8">
<h2>Contact us</h2>
<p class="lead">
Email: <a href="mailto:[email protected]">[email protected]</a>
</p>
<p class="lead">
Github: <a href="https://github.com/boxianglin">https://github.com/boxianglin</a>
</p>
<!-- <p class="lead">
Linkedin:
</p> -->
</div>
</div>
</div>
</section>
<!-- Footer-->
<footer class="py-5 bg-dark">
<div class="container px-4"><p class="m-0 text-center text-white">Copyright © BoxDBox 2022</p></div>
</footer>
<!-- Bootstrap core JS-->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<!-- Core theme JS-->
<script src="js/scripts.js"></script>
</body>
</html>