Repository navigation
Expand file tree
/
Copy pathindex1.html
More file actions
68 lines (61 loc) · 3.16 KB
/
Copy pathindex1.html
File metadata and controls
68 lines (61 loc) · 3.16 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<!-- <script src=https://cdnjs.cloudflare.com/ajax/libs/mathjs/10.1.0/math.min.js></script> -->
<!-- <script src="http://www.leemon.com/crypto/BigInt.js"></script> -->
<script src="./node_modules/mathjs/lib/browser/math.js"></script>
<script src="myscript.js"></script>
<title>RSA</title>
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
</head>
<body>
<!--<div class = "instructions form" style="background-color: black;"> -->
<!-- <p><strong>How to pick p:</strong><br> p must be a prime number.</p>-->
<!-- <p><strong>How to pick q:</strong><br> q must be a prime number.</p>-->
<!--</div>-->
<div class="form">
<div class="title" style="
align-self: center;
text-align: center;
">RSA</div>
<div class="subtitle" style="
align-self: center;
text-align: center;
">Enter correct values are required to enter the next value</div>
<div class="input-container ic1">
<div style="display: flex; height: 95%;">
<input id="pValue" class="input" type="text" placeholder=" p (Must be a prime number)" />
<button id=check1 onclick=check1() class="btn btn-danger">Check</button>
</div>
<!--<div class="cut"></div> -->
<!--<label for="firstname" class="placeholder">p (Must be a prime number)</label>-->
</div>
<div class="input-container ic2">
<div style="display: flex; height: 95%;">
<input id="qValue" class="input" type="text" placeholder=" q (Must be a prime number)" readonly/>
<button id=check2 onclick='check2()' class="btn btn-danger">Check</button>
</div>
<!--<div class="cut"></div> -->
<!--<label for="lastname" class="placeholder">q (Must be a prime number)</label>-->
</div>
<div class="input-container ic2">
<div style="display: flex; height: 95%;">
<input id="eValue" class="input" type="text" placeholder="e (Must be coprime to phi) " readonly/>
<button id=check2 onclick='check3()' class="btn btn-danger">Check</button>
</div>
<!--<div class="cut cut-short"></div>-->
<!--<label for="email" class="placeholder">e (Must be coprime to n)</label>-->
</div>
<div class="input-container ic2">
<input id="plaintext" class="input" type="text" placeholder="A message to be encrypted.. " readonly/>
<!-- <div class="cut cut-short"></div> -->
<!--<label for="plaintext" class="placeholder">Message want to be encrypted...</label>-->
</div>
<button id="submit" type="text" class="submit" onclick="takePlain()">Calculate</button>
</div>
</body>
</html>