-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
73 lines (59 loc) · 3.11 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
<!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">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="description" content="A passphrase generator based on XKCD 936.">
<meta name="author" content="Vincent Marcus">
<title>xkpass: xkcd Passphrase Generator</title>
<!-- Latest compiled and minified CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<!-- Custom styles for this template -->
<link href="css/sticky-footer.css" rel="stylesheet">
<script src="js/words.js"></script>
<script src="js/xkpass.js"></script>
</head>
<body>
<!-- Begin page content -->
<div class="container">
<div class="page-header">
<h1>xkpass</h1>
</div>
<p class="lead">Just a simple passphrase generator based on a <a href="https://xkcd.com/936/">comic strip</a>.</p>
<div class="list-group" id="generated_passphrases">
</div>
<p>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="" id="include_numbers">
<label class="form-check-label" for="include_numbers">
Include Numbers
</label>
</div>
</p>
<p>
<div class="input-group mb-3">
<div class="input-group-prepend">
<button class="btn btn-outline-secondary" type="button" onclick="genPassPhrases()">Generate Passphrases</button>
</div>
<select class="custom-select" id="max_word_length_val" onchange="calculateEntropy()">
<option selected>Max Word Length...</option>
</select>
</div>
</p>
<div class="alert alert-success" role="alert" id="entropy_alert">
<h4 class="alert-heading">Entropy</h4>
<p><span>These settings should generate a <b><span id="passphrase_strength"></span></b> passphrase with about 2<sup id="calculated_entropy">x</sup> bits of entropy.</span> <span id="entropy_message"></span></p>
<hr>
<p class="mb-0">Visit <a href="https://www.explainxkcd.com/wiki/index.php/936:_Password_Strength">explain xkcd</a> for an explanation of the math.</p>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.7.1.slim.min.js" integrity="sha256-kmHvs0B+OpCW5GVHUNjv9rOmY0IvSIRcf7zGUDTDQM8=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.8/dist/umd/popper.min.js" integrity="sha384-I7E8VVD/ismYTF4hNIPjVp/Zjvgyol6VFvRkX/vR+Vc4jQkC+hVqc2pM8ODewa9r" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.min.js" integrity="sha384-BBtl+eGJRgqQAUMxJ7pMwbEyER4l1g+O15P+16Ep7Q9Q+zqX6gSbd85u4mG4QzX+" crossorigin="anonymous"></script>
<script>
initUI();
</script>
</body>
</html>