-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
297 lines (284 loc) · 10.7 KB
/
index.html
File metadata and controls
297 lines (284 loc) · 10.7 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="./assets/logo.png" />
<title>Let's Encrypt</title>
<!-- ! Primary Meta Tags -->
<meta name="title" content="Let's Encrypt - free file encyption/decryption" />
<meta
name="description"
content="Free and user-friendly web application to encrypt and decrypt files using a password of your choice. Whether you need to protect sensitive data or secure your personal files, this app provides a convenient solution."
/>
<!--! Open Graph / Facebook -->
<meta property="fb:app_id" content="0000000002" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://encrypt.tn/" />
<meta property="og:title" content="Let's Encrypt" />
<meta
property="og:description"
content="Free and user-friendly web application to encrypt and decrypt files using a password of your choice. Whether you need to protect sensitive data or secure your personal files, this app provides a convenient solution."
/>
<meta property="og:image" content="https://i.ibb.co/NVV4b0P/og2.jpg" />
<meta property="og:image:url" content="https://i.ibb.co/NVV4b0P/og2.jpg" />
<meta
property="og:image:secure_url"
content="https://i.ibb.co/NVV4 b0P/og2.jpg"
/>
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<!-- ! Twitter -->
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content="https://encrypt.tn/" />
<meta property="twitter:title" content="Let's Encrypt" />
<meta
property="twitter:description"
content="Free and user-friendly web application to encrypt and decrypt files using a password of your choice. Whether you need to protect sensitive data or secure your personal files, this app provides a convenient solution."
/>
<meta property="twitter:image" content="https://i.ibb.co/NVV4b0P/og2.jpg" />
<!-- ! end of meta -->
<!-- ! SEO stuff -->
<!-- ! end of SEO stuff -->
<!-- css imports -->
<link rel="stylesheet" href="style.css" />
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ"
crossorigin="anonymous"
/>
<!-- Linking the javascript code (no, it's deferred)-->
<script defer src="app.js"></script>
</head>
<body>
<div class="container py-4 d-flex flex-column">
<!--! Header -->
<header class="pb-3 mb-4">
<a
href="#"
class="d-flex align-items-center text-dark text-decoration-none ps-0 ps-md-4"
>
<img
src="./assets/logo_full.png"
alt=""
style="height: auto; width: 20em"
/>
</a>
</header>
<main>
<div
class="custom-color-shade px-1 px-md-5 mb-4 rounded-4 w-100 d-flex flex-column"
>
<div class="container-fluid pt-5">
<p class="col-md-8 h5 fw-semibold">Just drag & drop!</p>
<h1 class="display-4 fw-light fst-italic">
Online file encryption & decryption.
</h1>
</div>
<!-- decrypt encrypt toggle -->
<div class="d-flex align-self-lg-end align-self-center my-4">
<button
id="btnDivEncrypt"
class="btn btn-outline-dark"
onClick="javascript:switchdiv('encrypt');"
style="border-radius: 10px 0 0 10px"
>
Encrypt
</button>
<button
id="btnDivDecrypt"
class="btn btn-outline-dark"
onClick="javascript:switchdiv('decrypt');"
style="border-radius: 0 10px 10px 0"
>
Decrypt
</button>
</div>
</div>
<!-- !ENCRYPT -->
<div class="row align-items-md-stretch" id="divEncryptfile">
<!-- !col 1 -->
<div class="col-md-6 mb-2">
<div class="h-100 p-5 text-bg-dark rounded-4">
<!-- the dropzone -->
<div
class="dropzone p-3 p-md-5"
id="encdropzone"
ondrop="drop_handler(event);"
ondragover="dragover_handler(event);"
ondragend="dragend_handler(event);"
>
<p>
Drag and drop the file to be encrypted into this dropzone, or
click
<a onclick="javascript:encfileElem.click();">here</a> to
select file.
</p>
<p>
<span
id="spnencfilename"
style="font-style: italic; font-weight: 100"
>file name will appear here</span
>
</p>
<div class="w-100 d-flex justify-content-center">
<lottie-player
src="https://assets4.lottiefiles.com/packages/lf20_tijj0wnj.json"
background="transparent"
speed="1"
style="max-width: 100%; width: 180px; height: 100%"
loop
autoplay
></lottie-player>
</div>
</div>
<input
type="file"
id="encfileElem"
style="display: none"
onchange="selectfile(this.files)"
/>
</div>
</div>
<!-- !col 2 -->
<div class="col-md-6">
<div
class="h-100 p-5 bg-body-tertiary border rounded-4 d-flex flex flex-column gap-3"
>
<div>
<div class="form-label">Password</div>
<input
id="txtEncpassphrase"
type="password"
size="30"
onkeyup="javascript:encvalidate();"
value=""
class="form-control"
/>
<div class="form-text">minumum length two characters</div>
</div>
<div>
<div class="form-label">Confirm password</div>
<input
id="txtEncpassphraseretype"
type="password"
size="30"
onkeyup="javascript:encvalidate();"
value=""
class="form-control"
/>
</div>
<div class="">
<!-- button -->
<button
id="btnEncrypt"
onclick="javascript:encryptfile();"
class="btn btn-primary w-100 desaturate"
disabled
>
Encrypt File
<span class="greenspan px-1" id="spnCheckretype"></span>
</button>
</div>
<span id="spnEncstatus"></span>
<a id="aEncsavefile" hidden
><button class="btn btn-primary w-100 desaturate">
Save Encrypted File
</button></a
>
</div>
</div>
</div>
<!-- !DECRYPT -->
<div class="row align-items-md-stretch" id="divDecryptfile">
<!-- !col 1 -->
<div class="col-md-6 mb-2">
<div class="h-100 p-5 text-bg-dark rounded-4">
<!-- the dropzone -->
<div>
<div
class="dropzone p-3 p-md-5"
id="decdropzone"
ondrop="drop_handler(event);"
ondragover="dragover_handler(event);"
ondragend="dragend_handler(event);"
>
<p>
Drag and drop the file to be decrypted into this dropzone,
or click
<a role="button" onclick="javascript:decfileElem.click();"
>here</a
>
to select file.
</p>
<p>
<span
id="spndecfilename"
style="font-style: italic; font-weight: 100"
>file name will appear here</span
>
</p>
<div class="w-100 d-flex justify-content-center">
<lottie-player
src="https://assets4.lottiefiles.com/packages/lf20_tijj0wnj.json"
background="transparent"
speed="1"
style="max-width: 100%; width: 180px; height: 100%"
loop
autoplay
></lottie-player>
</div>
</div>
<input
type="file"
id="decfileElem"
style="display: none"
onchange="selectfile(this.files)"
/>
</div>
</div>
</div>
<!-- !col 2 -->
<div class="col-md-6">
<div
class="h-100 p-5 bg-body-tertiary border rounded-4 d-flex flex-column gap-3"
>
<div class="">
<div class="form-label">Password</div>
<input
id="txtDecpassphrase"
type="password"
class="form-control"
size="30"
onkeyup="javascript:decvalidate();"
value=""
/>
</div>
<button
id="btnDecrypt"
onclick="javascript:decryptfile();"
class="btn btn-primary desaturate"
disabled
>
Decrypt File
</button>
<span id="spnDecstatus"></span>
<a id="aDecsavefile" hidden
><button class="btn btn-primary desaturate">
Save Decrypted File
</button></a
>
</div>
</div>
</div>
</main>
<footer class="pt-3 mt-4 text-body-secondary d-inline">
© 2024 Let's Encrypt made with ❤️ by
<a href="https://ashref.tn" class="text-secondary-emphasis" target="_blank" >Ashref</a>
</footer>
</div>
<!-- lottie import -->
<script src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"></script>
</body>
</html>