-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
66 lines (48 loc) · 2.34 KB
/
Copy pathindex.html
File metadata and controls
66 lines (48 loc) · 2.34 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Image encryption app</title>
<link rel="stylesheet" href="index.css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-4bw+/aepP/YC94hEpVNVgiZdgIC5+VKNBQNGCHeKRQN+PtmoHDEXuppvnDJzQIu9" crossorigin="anonymous">
</head>
<body>
<div class="alert alert-dark" role="alert">
Make sure to use the same image dimensions for both the base and encryption images for best results, otherwise a cropped version may be shown.
</div>
<div class="row container-fluid">
<div class="encrypt col-lg-6 col-12 mb-4">
<h2>Encrypt Image</h2>
<div class="input-container">
<label for="Target">Upload base image</label>
<input type="file" id="target" mltiple='false' accept='image/*'>
</div>
<div class="input-container">
<label for="Encryption">Upload encryption image</label>
<input type="file" id="encryption" multiple='false' accept='image/*'>
</div>
<button class="btn btn-light mt-2" id="encrypt-btn">Encrypt Image</button>
<div class="canvas-container m-0 mt-2">
<canvas id="canvas-encrypt"></canvas>
</div>
</div>
<div class="decrypt col-lg-6 col-12">
<h2>Decrypt Image from source</h2>
<small>If you use a previously unencrypted image, you will get an inaccurate result.</small>
<div class="input-container">
<label for="Target">Upload encrypted image</label>
<input type="file" id="decrypt-image" mltiple='false' accept='image/*'>
</div>
<button class="btn btn-light mt-2" id="decrypt">Decrypt</button>
<div class="canvas-container row m-0 mt-2">
<canvas id="canvas-decrypt1" class="col"></canvas>
<canvas id="canvas-decrypt2" class="col"></canvas>
</div>
</div>
</div>
<script src='https://www.dukelearntoprogram.com/course1/common/js/image/SimpleImage.js'></script>
<script src="index.js" type="text/javascript"></script>
</body>
</html>