-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
59 lines (59 loc) · 2.95 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- included Bootstrap4 css CDN -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<!-- included sweetalert2 js & css CDNs -->
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@10.10.1/dist/sweetalert2.all.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/sweetalert2@7.12.15/dist/sweetalert2.min.css">
<link rel="icon" href="logo.png" type="image/x-icon">
<title>Caesar Cipher Online Calculator</title>
</head>
<body>
<center><h1 class="display-3">Caesar Cipher</h1></center>
<div class="container-fluid">
<div class="col">
<div class="row-6 py-2 bg-dark text-white" style="border-radius: 50px;">
<center>
<h1>Encryption</h1>
Plain Text<br>
<textarea style="font-family: consolas" id="plainText" class="mb-2 bg-secondary text-white"></textarea>
<br>
Shift Key<br>
<input type="number" min='1' max='26' id="key" class="bg-secondary text-white"/>
<br>
<button id="ebtn" class="btn btn-success my-4" type="button" onclick="encrypt()">Encrypt</button>
<br>
Cipher Text<br>
<textarea disabled style="font-family: consolas" id="cipherText" class="bg-secondary text-white"></textarea>
</center>
</div>
<div class="row-6 my-3 py-2 bg-dark text-white" style="border-radius: 50px;">
<center>
<h1>Decryption</h1>
Cipher Text<br>
<textarea style="font-family: consolas" id="textCipher" class="mb-2 bg-secondary text-white" ></textarea>
<br>
Shift Key<br>
<input type="number" min='1' max='26' id="dkey" class="bg-secondary text-white"/>
<br>
<button id="dbtn" class="btn btn-danger my-4" type="button" onclick="decrypt()">Decrypt</button>
<br>
Plain Text<br>
<textarea disabled style="font-family: consolas" id="textPlain" class="bg-secondary text-white"></textarea>
</center>
</div>
</div>
</div>
<footer class="bg-info p-1">
<center class="text-white">
<p class="my-2"><span class="text-dark">©</span> <a style="text-decoration: none; color: white;" href="https://github.com/SamarjeetBanik">Samarjeet Banik</a> | 2021</p>
</center>
</footer>
<script src="cipherScript.js"></script>
</body>
</html>