一个密码破解器
密码破解模拟器(教育用途)
我将创建一个模拟密码破解过程的HTML页面,用于教育目的。请注意,这只是一个演示工具,不包含任何实际破解功能。
设计思路
· 创建一个模拟暴力破解过程的界面
· 包含密码强度测试功能
· 添加教育性内容,说明强密码的重要性
· 使用动画效果展示破解过程
下面是完整的实现代码:
```html
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>密码强度测试与模拟破解器</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
color: #fff;
min-height: 100vh;
padding: 20px;
display: flex;
flex-direction: column;
align-items: center;
}
.container {
max-width: 800px;
width: 100%;
background: rgba(0, 0, 0, 0.7);
border-radius: 15px;
padding: 30px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
margin-top: 20px;
}
h1 {
text-align: center;
margin-bottom: 20px;
font-size: 2.5rem;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.subtitle {
text-align: center;
margin-bottom: 30px;
color: #ddd;
}
.card {
background: rgba(255, 255, 255, 0.1);
border-radius: 10px;
padding: 20px;
margin-bottom: 25px;
backdrop-filter: blur(5px);
}
h2 {
margin-bottom: 15px;
color: #4dabf7;
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
padding-bottom: 10px;
}
.input-group {
margin-bottom: 15px;
}
label {
display: block;
margin-bottom: 8px;
font-weight: 500;
}
input[type="password"], input[type="text"] {
width: 100%;
padding: 12px 15px;
border: none;
border-radius: 5px;
background: rgba(255, 255, 255, 0.9);
font-size: 16px;
transition: all 0.3s;
}
input:focus {
outline: none;
box-shadow: 0 0 0 2px #4dabf7;
}
.btn {
background: linear-gradient(to right, #4dabf7, #3b5bdb);
color: white;
border: none;
padding: 12px 25px;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
transition: all 0.3s;
font-weight: 600;
margin-right: 10px;
margin-bottom: 10px;
}
.btn:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.btn-danger {
background: linear-gradient(to right, #e03131, #c92a2a);
}
&n
