-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPassGen.html
More file actions
65 lines (56 loc) · 2.57 KB
/
Copy pathPassGen.html
File metadata and controls
65 lines (56 loc) · 2.57 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/zxcvbn/4.4.2/zxcvbn.js"></script>
<title>Password Generator</title>
</head>
<body oncontextmenu="return false;">
<div class="container">
<h1>Password Generator</h1>
<div class="password-container">
<input type="text" id="password" readonly>
<div class="strength-container">
<div id="strength-meter"></div>
</div>
<p id="cracking-time" class="cracking-time"></p>
<button class="generate-btn" onclick="generatePassword()">Generate Password</button>
<button class="copy-btn" onclick="copyToClipboard()">Copy to Clipboard</button>
</div>
<div class="password-container">
<div class="password-input-container">
<input type="password" id="user-password" placeholder="Enter your password">
<img src="Image/eye-close.png" alt="Show/Hide" onclick="togglePasswordVisibility()" id="password-close">
<img src="Image/eye-open.png" alt="Show/Hide" onclick="togglePasswordVisibility()" id="password-open">
</div>
<button class="check-btn" onclick="checkPasswordStrength()">Check Password Strength</button>
<p id="user-cracking-time" class="cracking-time"></p>
</div>
<div class="options">
<div class="label-container">
<label for="length">Password Length</label>
<input type="number" id="length" min="8" max="32" value="12">
</div>
<div class="checkbox-container">
<input type="checkbox" id="uppercase" checked>
<label for="uppercase">Uppercase</label>
</div>
<div class="checkbox-container">
<input type="checkbox" id="lowercase" checked>
<label for="lowercase">Lowercase</label>
</div>
<div class="checkbox-container">
<input type="checkbox" id="digits" checked>
<label for="digits">Digits</label>
</div>
<div class="checkbox-container">
<input type="checkbox" id="symbols" checked>
<label for="symbols">Symbols</label>
</div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>