-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.html
221 lines (189 loc) · 6.73 KB
/
popup.html
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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
<!DOCTYPE html>
<html>
<head>
<title>Zero-Width Text Steganography</title>
<style>
* {
box-sizing: border-box;
}
/* Estilos gerais */
body {
font-family: Arial, sans-serif;
padding: 10px;
max-width: 100%;
overflow-x: hidden;
margin: 0 auto;
}
textarea {
width: 100%;
height: 80px;
margin-top: 10px;
}
button {
margin-top: 10px;
width: 100%;
}
.counter, .types-title {
font-size: 12px;
color: gray;
margin-top: 10px;
font-weight: bold;
}
ul {
padding-left: 20px;
font-size: 12px;
color: gray;
margin-top: 5px;
}
.checkbox-container {
display: flex;
justify-content: space-between;
margin-top: 10px;
}
.column {
display: flex;
flex-direction: column;
}
.checkbox-item {
display: flex;
align-items: center;
margin-bottom: 5px;
}
.checkbox-item input {
margin-right: 5px;
}
.messages-container h4 {
margin-bottom: 1px;
}
.messages-container {
margin-bottom: 20px;
}
.secret-key-container h4 {
margin-bottom: 3px;
}
.zero-width-options-container h4 {
margin-bottom: 3px;
}
/* Estilo para alinhar o campo de entrada e o botão na mesma linha */
.secret-key-container {
display: flex;
flex-direction: column;
margin-bottom: 10px;
}
.input-row {
display: inline-flex;
align-items: flex-end;
gap: 5px;
width: 100%;
}
#secret-key {
flex-grow: 1;
padding: 4px;
font-size: 14px;
border: 1px solid #ccc;
border-radius: 4px;
vertical-align: middle;
}
#toggle-secret-key-btn {
width: 60px;
padding: 4px 8px;
font-size: 14px;
border: 1px solid #ccc;
border-radius: 4px;
background-color: #f0f0f0;
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
vertical-align: middle;
}
/* Estilo para alinhar Encode e Decode na mesma linha */
.button-row {
display: flex;
gap: 10px;
margin-top: 10px;
}
.button-row button {
flex: 1;
width: auto;
}
/* Estilo para alinhar Clear All e Copy to Clipboard na mesma linha */
.action-button-row {
display: flex;
gap: 10px;
margin-top: 10px;
}
.action-button-row button {
flex: 1;
width: auto;
}
h3 {
margin-top: 1px; /* Ajuste conforme necessário para reduzir o espaço */
}
</style>
</head>
<body>
<h3>Zero-Width Text Steganography</h3>
<div class="messages-container">
<h4>Messages:</h4>
<textarea id="original-text" placeholder="Original Text"></textarea>
<div class="counter" id="original-text-counter">0 characters</div>
<textarea id="hidden-text" placeholder="Text to Hide"></textarea>
<div class="counter" id="hidden-text-counter">0 characters</div>
</div>
<!-- Campo da chave secreta -->
<div class="secret-key-container">
<label for="secret-key"><strong>Secret Key (Cryptography):</strong></label>
<div class="input-row">
<input type="password" id="secret-key" placeholder="Enter Secret Key (Optional)">
<button id="toggle-secret-key-btn">View</button>
</div>
</div>
<div class="zero-width-options-container">
<h4>Choose the characters to be used:</h4>
<div id="zero-width-options" class="checkbox-container">
<div class="column">
<label class="checkbox-item"><input type="checkbox" value="​"> U+200B</label>
<label class="checkbox-item"><input type="checkbox" value="‌" checked> U+200C</label>
<label class="checkbox-item"><input type="checkbox" value="‍" checked> U+200D</label>
<label class="checkbox-item"><input type="checkbox" value="‎"> U+200E</label>
<label class="checkbox-item"><input type="checkbox" value="‪"> U+202A</label>
</div>
<div class="column">
<label class="checkbox-item"><input type="checkbox" value="‬" checked> U+202C</label>
<label class="checkbox-item"><input type="checkbox" value="‭"> U+202D</label>
<label class="checkbox-item"><input type="checkbox" value="⁢"> U+2062</label>
<label class="checkbox-item"><input type="checkbox" value="⁣"> U+2063</label>
<label class="checkbox-item"><input type="checkbox" value="" checked> U+FEFF</label>
</div>
</div>
</div>
<div class="zero-width-options-container">
<h4>Choose the position to hide:</h4>
<div style="display: flex; gap: 10px; align-items: center;">
<label><input type="radio" name="position" value="beginning"> Beginning</label>
<label><input type="radio" name="position" value="end"> End</label>
<label><input type="radio" name="position" value="distributed" checked> Distributed</label>
</div>
</div>
<!-- Botões Encode e Decode alinhados na mesma linha -->
<div class="button-row">
<button id="encode-btn">Encode</button>
<button id="decode-btn">Decode</button>
</div>
<textarea id="result-text" placeholder="Result..." readonly></textarea>
<div class="counter" id="result-text-counter">0 characters</div>
<!-- Botões Clear All e Copy to Clipboard alinhados na mesma linha -->
<div class="action-button-row">
<button id="clear-btn">Clear All</button>
<button id="copy-btn">Copy to Clipboard</button>
</div>
<button id="highlight-btn">Detect Zero-Width Characters</button>
<div id="zero-width-count" class="counter">Zero-width characters: 0</div>
<div id="zero-width-types-title" class="types-title" style="display: none;">Zero-width types:</div>
<ul id="zero-width-types"></ul>
<script src="unicode_steganography.js"></script>
<script src="crypto-js.min.js"></script>
<script src="popup.js"></script>
</body>
</html>