-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
76 lines (65 loc) · 2.4 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
74
75
76
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Password Pwned</title>
<script src="app.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.4/css/bulma.min.css">
<style>
body {
margin: 30px 10px;
}
legend {
background: white;
}
fieldset {
}
</style>
</head>
<body>
<div class="container">
<h1 class="title">Compromised password check tool</h1>
<p>Check your password security against a known comprimised password database.</p>
<p>Uses haveibeenpwned API to securely check your password in SHA-1 hashed form with https://en.wikipedia.org/wiki/K-anonymity</p>
<p>Read more at <a href="https://haveibeenpwned.com/">';--have i been pwned?</a></p>
<br />
<fieldset class="box">
<legend class="heading is-5">Verify your password</legend>
<form name="pwned" onsubmit="app.submit();return false;">
<div class="field">
<label for="password" class="label">Password</label>
<div class="control">
<input type="password" class="input" name="password" id="password" required/>
</div>
</div>
<div class="field">
<div class="control">
<button class="button is-primary" type="submit">Check</button>
</div>
</div>
</form>
</fieldset>
<fieldset class="box">
<legend class="heading is-5">Security check results</legend>
<table class="table">
<tbody>
<tr>
<th>SHA-1</th>
<td><span id="hash"></span></td>
</tr>
<tr>
<th>Partial matches</th>
<td><span id="matches"></span></td>
</tr>
<tr>
<th>Exploited?</th>
<td><span id="exact-match"></span></td>
</tr>
</tbody>
</table>
</fieldset>
</div>
</body>
</html>