-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdecrypt_link.html
More file actions
170 lines (168 loc) · 4.81 KB
/
Copy pathdecrypt_link.html
File metadata and controls
170 lines (168 loc) · 4.81 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Decrypt Link</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@500&family=Roboto+Mono:wght@400;700&display=swap" rel="stylesheet">
<style>
body {
min-height: 100vh;
margin: 0;
background: #23272e;
background-image:
repeating-linear-gradient(135deg, #2d313a 0 2px, transparent 2px 40px),
repeating-linear-gradient(45deg, #23272e 0 2px, transparent 2px 40px);
display: flex;
justify-content: center;
align-items: center;
font-family: 'Roboto Mono', 'Consolas', 'Menlo', monospace;
color: #e0e0e0;
letter-spacing: 0.02em;
}
.glass-box {
background: rgba(40,44,52,0.96);
border-radius: 18px;
box-shadow:
0 2px 24px 0 rgba(0,0,0,0.18),
0 1.5px 0 0 #444b54 inset,
0 -1.5px 0 0 #23272e inset;
padding: 2.5em 3em;
text-align: center;
min-width: 340px;
max-width: 90vw;
animation: fadeIn 0.8s;
border: 1.5px solid #444b54;
position: relative;
overflow: hidden;
}
.glass-box::before {
content: "";
position: absolute;
top: -40px; left: -40px; right: -40px; bottom: -40px;
background: linear-gradient(120deg, rgba(255,255,255,0.04) 0%, rgba(60,60,60,0.08) 100%);
z-index: 0;
pointer-events: none;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(40px);}
to { opacity: 1; transform: translateY(0);}
}
h2 {
font-family: 'Orbitron', 'Roboto Mono', monospace;
letter-spacing: 2px;
margin-bottom: 1.5em;
color: #00e6b8;
text-shadow: 0 2px 8px #00e6b822;
font-size: 1.5em;
z-index: 1;
position: relative;
}
.input-row {
margin-bottom: 1.5em;
z-index: 1;
position: relative;
}
input[type="text"] {
padding: 0.7em 1em;
border-radius: 8px;
border: 1.5px solid #444b54;
width: 70%;
font-size: 1.1em;
margin-top: 0.5em;
background: #23272e;
color: #00e6b8;
outline: none;
transition: border 0.2s, box-shadow 0.2s;
box-shadow: 0 1.5px 6px #00e6b822;
font-family: 'Roboto Mono', monospace;
}
input[type="text"]:focus {
border: 1.5px solid #00e6b8;
box-shadow: 0 2px 8px #00e6b833;
}
input[type="submit"] {
padding: 0.7em 2.5em;
border-radius: 8px;
border: none;
background: linear-gradient(90deg, #00e6b8 0%, #0072ff 100%);
color: #fff;
font-size: 1.1em;
font-weight: bold;
cursor: pointer;
margin-top: 1em;
transition: background 0.2s, transform 0.2s;
box-shadow: 0 2px 8px #00e6b822;
letter-spacing: 0.08em;
font-family: 'Roboto Mono', monospace;
}
input[type="submit"]:hover {
background: linear-gradient(90deg, #0072ff 0%, #00e6b8 100%);
transform: translateY(-2px) scale(1.03);
}
.error {
color: #ff6b6b;
margin-top: 1em;
font-weight: bold;
z-index: 1;
position: relative;
font-family: 'Roboto Mono', monospace;
}
.decrypted-link {
font-size: 1.1em;
margin-top: 2em;
background: #23272e;
padding: 1.2em 1em;
border-radius: 12px;
box-shadow: 0 2px 8px #00e6b822;
word-break: break-all;
display: flex;
flex-direction: column;
align-items: center;
z-index: 1;
position: relative;
border: 1.5px solid #00e6b8;
}
.decrypted-link a {
color: #00e6b8;
font-weight: bold;
font-size: 1.15em;
word-break: break-all;
text-decoration: underline;
padding: 0.2em 0.5em;
border-radius: 5px;
background: #23272e;
transition: background 0.2s, color 0.2s;
font-family: 'Roboto Mono', monospace;
}
.decrypted-link a:hover {
background: #00e6b8;
color: #23272e;
}
</style>
</head>
<body>
<div class="glass-box">
{% if error %}
<div class="error" style="color:red;">{{ error }}</div>
{% endif %}
{% if decrypted %}
<div class="decrypted-link">
<p><strong>Decrypted link:</strong></p>
<a href="{{ decrypted }}" target="_blank">{{ decrypted }}</a>
</div>
{% endif %}
{% if not decrypted %}
<h2>Decrypt Your Secure Link</h2>
<form method="post">
<input type="hidden" name="encrypted" value="{{ encrypted }}">
<div class="input-row">
<label for="key">Decryption Key (10 digits):</label><br>
<input type="text" name="key" id="key" maxlength="10" pattern="\d{10}" required autocomplete="off" autofocus>
</div>
<input type="submit" value="Decrypt">
</form>
{% endif %}
</div>
</body>
</html>