40 精币
[mw_shl_code=javascript,true]<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>文件AES加密工具 - 支持二进制文件</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.1.1/crypto-js.min.js"></script>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
padding: 20px;
}
.container {
width: 100%;
max-width: 850px;
background: rgba(255, 255, 255, 0.95);
border-radius: 20px;
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
overflow: hidden;
}
header {
background: linear-gradient(to right, #4a00e0, #8e2de2);
color: white;
padding: 25px 30px;
text-align: center;
}
h1 {
font-size: 2.2rem;
margin-bottom: 10px;
font-weight: 600;
}
.subtitle {
font-size: 1.1rem;
opacity: 0.9;
}
.content {
padding: 30px;
}
.upload-area {
border: 3px dashed #8e2de2;
border-radius: 15px;
padding: 40px 20px;
text-align: center;
margin-bottom: 30px;
transition: all 0.3s;
background: rgba(142, 45, 226, 0.05);
cursor: pointer;
}
.upload-area:hover, .upload-area.dragover {
background: rgba(142, 45, 226, 0.1);
transform: translateY(-5px);
}
.upload-icon {
font-size: 60px;
color: #8e2de2;
margin-bottom: 15px;
}
.upload-text {
font-size: 1.2rem;
margin-bottom: 10px;
color: #333;
}
.file-input {
display: none;
}
.btn {
display: inline-block;
background: linear-gradient(to right, #4a00e0, #8e2de2);
color: white;
border: none;
padding: 12px 30px;
border-radius: 50px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s;
box-shadow: 0 5px 15px rgba(142, 45, 226, 0.3);
}
.btn:hover {
transform: translateY(-3px);
box-shadow: 0 8px 20px rgba(142, 45, 226, 0.4);
}
.btn:active {
transform: translateY(1px);
}
.btn:disabled {
background: #cccccc;
cursor: not-allowed;
transform: none;
box-shadow: none;
}
.form-group {
margin-bottom: 25px;
}
label {
display: block;
margin-bottom: 10px;
font-weight: 600;
color: #444;
}
input[type="password"], input[type="text"] {
width: 100%;
padding: 15px;
border: 2px solid #ddd;
border-radius: 10px;
font-size: 1rem;
transition: border 0.3s;
}
input[type="password"]:focus, input[type="text"]:focus {
border-color: #8e2de2;
outline: none;
}
.radio-group {
display: flex;
gap: 20px;
margin-top: 10px;
}
.radio-option {
display: flex;
align-items: center;
gap: 8px;
cursor: pointer;
}
.radio-option input {
cursor: pointer;
}
.file-info {
background: #f0f4ff;
border-radius: 10px;
padding: 15px;
margin-bottom: 20px;
display: none;
}
.file-info.active {
display: block;
}
.file-name {
font-weight: 600;
margin-bottom: 5px;
color: #4a00e0;
}
.file-size {
color: #666;
font-size: 0.9rem;
}
.file-type {
color: #666;
font-size: 0.9rem;
}
.action-buttons {
display: flex;
gap: 15px;
margin-top: 20px;
}
.progress-container {
margin-top: 20px;
display: none;
}
.progress-bar {
height: 10px;
background: #e0e0e0;
border-radius: 5px;
overflow: hidden;
}
.progress {
height: 100%;
background: linear-gradient(to right, #4a00e0, #8e2de2);
width: 0%;
transition: width 0.3s;
}
.progress-text {
text-align: center;
margin-top: 10px;
font-weight: 600;
color: #4a00e0;
}
.result {
margin-top: 20px;
padding: 20px;
border-radius: 10px;
background: #e8f5e9;
border: 2px solid #4caf50;
display: none;
}
.result.error {
background: #ffebee;
border-color: #f44336;
}
.result.active {
display: block;
}
.download-btn {
margin-top: 15px;
}
.info-box {
background: #e3f2fd;
border-radius: 10px;
padding: 15px;
margin-top: 20px;
border-left: 4px solid #2196f3;
}
.info-title {
font-weight: 600;
margin-bottom: 8px;
color: #1976d2;
}
.info-content {
font-size: 0.9rem;
color: #555;
line-height: 1.5;
}
footer {
text-align: center;
padding: 20px;
color: #666;
font-size: 0.9rem;
border-top: 1px solid #eee;
}
@media (max-width: 600px) {
.container {
border-radius: 10px;
}
h1 {
font-size: 1.8rem;
}
.content {
padding: 20px;
}
.action-buttons {
flex-direction: column;
}
}
</style>
</head>
<body>
<div class="container">
<header>
<h1>文件AES加密工具</h1>
<p class="subtitle">支持二进制文件的安全加密/解密</p>
</header>
<div class="content">
<div class="upload-area" id="uploadArea">
<div class="upload-icon">
我来回答
回答提醒: 如果本帖被关闭无法回复,您有更好的答案帮助楼主解决,请发表至
源码区 可获得加分喔。
友情提醒: 本版被采纳的主题可在
申请荣誉值 页面申请荣誉值,获得
1点 荣誉值,荣誉值可兑换荣誉会员、终身vip用户组。
快捷通道: 申请荣誉值 →