Update crypto.html
Browse files- crypto.html +69 -7
crypto.html
CHANGED
@@ -5,17 +5,79 @@
|
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
<title>Шифрование ссылки</title>
|
7 |
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.1.1/crypto-js.min.js"></script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
</head>
|
9 |
<body>
|
10 |
<h1>Шифрование ссылки</h1>
|
11 |
<form id="encryptForm">
|
12 |
-
<
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
<
|
17 |
-
|
18 |
-
|
|
|
|
|
19 |
</form>
|
20 |
|
21 |
<h2>Зашифрованная ссылка:</h2>
|
|
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
<title>Шифрование ссылки</title>
|
7 |
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.1.1/crypto-js.min.js"></script>
|
8 |
+
<style>
|
9 |
+
body {
|
10 |
+
font-family: Arial, sans-serif;
|
11 |
+
text-align: center;
|
12 |
+
background-color: #f0f0f0;
|
13 |
+
margin: 0;
|
14 |
+
padding: 0;
|
15 |
+
}
|
16 |
+
h1 {
|
17 |
+
background-color: #4CAF50;
|
18 |
+
color: white;
|
19 |
+
padding: 20px;
|
20 |
+
margin: 0;
|
21 |
+
border-bottom: 2px solid #388E3C;
|
22 |
+
}
|
23 |
+
.input-row {
|
24 |
+
display: flex;
|
25 |
+
justify-content: center;
|
26 |
+
gap: 10px;
|
27 |
+
margin-top: 20px;
|
28 |
+
}
|
29 |
+
.input-row input[type="text"] {
|
30 |
+
padding: 10px;
|
31 |
+
font-size: 16px;
|
32 |
+
border: 1px solid #ccc;
|
33 |
+
border-radius: 5px;
|
34 |
+
}
|
35 |
+
.input-row label {
|
36 |
+
display: flex;
|
37 |
+
align-items: center;
|
38 |
+
color: #4CAF50;
|
39 |
+
font-size: 16px;
|
40 |
+
}
|
41 |
+
#encryptButton {
|
42 |
+
color: white;
|
43 |
+
background-color: #4CAF50;
|
44 |
+
border: none;
|
45 |
+
cursor: pointer;
|
46 |
+
padding: 10px 20px;
|
47 |
+
font-size: 16px;
|
48 |
+
border-radius: 5px;
|
49 |
+
margin-top: 20px;
|
50 |
+
}
|
51 |
+
#encryptButton:hover {
|
52 |
+
background-color: #388E3C;
|
53 |
+
}
|
54 |
+
h2 {
|
55 |
+
margin-top: 40px;
|
56 |
+
color: #4CAF50;
|
57 |
+
}
|
58 |
+
textarea {
|
59 |
+
width: 80%;
|
60 |
+
height: 100px;
|
61 |
+
padding: 10px;
|
62 |
+
font-size: 16px;
|
63 |
+
border: 1px solid #ccc;
|
64 |
+
border-radius: 5px;
|
65 |
+
margin-top: 10px;
|
66 |
+
}
|
67 |
+
</style>
|
68 |
</head>
|
69 |
<body>
|
70 |
<h1>Шифрование ссылки</h1>
|
71 |
<form id="encryptForm">
|
72 |
+
<div class="input-row">
|
73 |
+
<label for="key">Ключ:</label>
|
74 |
+
<input type="text" id="key" name="key" required>
|
75 |
+
</div>
|
76 |
+
<div class="input-row">
|
77 |
+
<label for="link">Ссылка:</label>
|
78 |
+
<input type="text" id="link" name="link" required>
|
79 |
+
</div>
|
80 |
+
<button type="button" id="encryptButton" onclick="encryptLink()">Зашифровать</button>
|
81 |
</form>
|
82 |
|
83 |
<h2>Зашифрованная ссылка:</h2>
|