-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
260 lines (246 loc) · 11.4 KB
/
index.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
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="Senecrypt" content="Cipher tools">
<meta name="author" content="Djibril NDIAYE">
<meta name="description" content="senecrypt est un site pour la pratique de la cryptographie. Il permet de chiffrer, déchiffrer, faire la cryptanalyse et fournit des outils pour la cryptographie">
<title>Senecrypt</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/5.0.0-alpha1/css/bootstrap.min.css"
integrity="sha384-r4NyP46KrjDleawBgD5tp8Y7UzmLA05oM1iAEQ17CSuDqnUK2+k9luXQOfXJCJ4I" crossorigin="anonymous">
<link rel="stylesheet" href="/styles/main.css">
<style>
/* .card {
background-color: coral;
} */
.lienCours{
color: #2a4747;
float: right;
}
.lienCours:active{
background-color: rgb(168, 149, 149);
}
.lienCours:hover{
color: darkslateblue;
}
.algoLabel{
clear: left;
white-space: nowrap;
}
#rst{
background-color: coral;
white-space: pre-line;
}
p input{
text-transform: uppercase;
}
input + span {
position: relative;
}
input + span::before {
position: absolute;
right: -20px;
top: 5px;
}
input select :invalid {
border: 2px solid red;
}
input:invalid + span::before {
content: '✖';
color: red;
}
input:valid + span::before {
content: '✓';
color: green;
}
#affineKey1 {
display: none;
}
</style>
</head>
<body>
<header class="mb-5">
<nav class="navbar fixed-top navbar-expand-md navbar-dark bg-primary ">
<div class="container">
<a class="navbar-brand" href="/">SeneCrypt</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse"
aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse">
<ul class="navbar-nav mr-auto mb-2 mb-md-0">
<li class="nav-item active">
<a class="nav-link active" aria-current="page" href="/">Accueil </a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="toolsDropdown" role="button" data-toggle="dropdown" aria-expanded="false">
Outils Crypto
</a>
<ul class="dropdown-menu" aria-labelledby="toolsDropdown">
<li><a class="dropdown-item" href="alphabets.html">Generation d'alphabets </a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="calculsModulaires.html">Calculs modulaires</a></li>
<li><a class="dropdown-item" href="nombresPremiers.html">Nombres Premiers et factorisation</a></li>
</ul>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="decryptor" role="button" data-toggle="dropdown" aria-expanded="false">
Cryptanalyse
</a>
<ul class="dropdown-menu" aria-labelledby="decryptor">
<li><a class="dropdown-item" href="analyseFrequentielle.html">Analyse fréquentielle </a></li>
<li><a class="dropdown-item" href="kasiski.html">Test de Kasiski/Babbage</a></li>
<li><a class="dropdown-item" href="indiceDeCoincidence.html">Indice de coincidence</a></li>
<li><a class="dropdown-item" href="motProbable.html">Test de mot probable</a></li>
<li><a class="dropdown-item" href="anagrammes.html">Recherche d'anagrammes</a></li>
</ul>
</li>
<li class="nav-item">
<a class="nav-link " href="apropos.html">A propos</a>
</li>
</ul>
</div>
</div>
</nav>
</header>
<main class="container my-4 p-2 rounded">
<div class="p-4">
<h1>Senecrypt</h1>
<p class="lead">Vous permet de chiffrer ou de dechiffrer avec les algorithmes de <strong>Chiffrement par Substitution</strong>
ou par <strong>Transposition</strong>
et vous fournit des outils qui facilitent votre pratique de la cryptographie.</p>
<a class="btn btn-lg btn-primary" href="apropos.html" role="button">Voir plus »</a>
</div>
</main>
<div class="container mt-4 mb-4" id="conteneur">
<div class="row">
<div class="col-md-4" id="algos">
<div class="accordion" id="algoBox">
<div class="card bg-info">
<div class="card-header" id="headingOne">
<h2 class="mb-0">
<button class="btn btn-link text-dark font-weight-bold btn-block text-center" type="button"
data-toggle="collapse" data-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
<h2 class="h4">Chiffrement Par Substitution</h2>
</button>
</h2>
</div>
<div id="collapseOne" class="collapse show" aria-labelledby="headingOne" data-parent="#algoBox">
<div class="card-body">
<div>
<label for="cesar" class="h4 text-left algoLabel">
<input type="radio" id="cesar" name="algo" value="cesar" autocomplete="off" required onclick="initAlgo()">
César</label>
<a class="lienCours font-weight-bold" href="explications.html#item-1-1"> Explication</a><br />
</div>
<div>
<label for="affine" class="h4 algoLabel">
<input type="radio" id="affine" name="algo" value="affine" autocomplete="off" onclick="initAlgo()" >
Affine</label>
<a class="lienCours font-weight-bold" href="explications.html#item-1-1-2"> Explication</a><br />
</div>
<div>
<label for="vigenere" class="h4 algoLabel">
<input type="radio" id="vigenere" name="algo" value="vigenere" onclick="initAlgo()">
Vigenere </label>
<a class="lienCours text-right font-weight-bold" href="explications.html#item-1-2"> Explication</a><br />
</div>
<div>
<label for="beaufort" class="h4 algoLabel">
<input type="radio" id="beaufort" name="algo" value="beaufort" onclick="initAlgo()">
Beaufort</label>
<a class="lienCours font-weight-bold" href="explications.html#item-1-3"> Explication</a><br />
</div>
<div>
<label for="allemande" class="h4 algoLabel">
<input type="radio" id="allemande" name="algo" value="allemande" onclick="initAlgo()">
Allemande </label>
<a class="lienCours font-weight-bold" href="explications.html#item-1-4"> Explication</a><br />
</div>
<div>
<label for="playfair" class="h4 algoLabel">
<input type="radio" id="playfair" name="algo" value="playfair" onclick="initAlgo()">
Playfair </label>
<a class="lienCours font-weight-bold" href="explications.html#item-1-4"> Explication</a><br />
</div>
<div>
<label for="polybe" class="h4 algoLabel">
<input type="radio" id="polybe" name="algo" value="polybe" onclick="initAlgo()">
Polybe </label>
<a class="lienCours font-weight-bold" href="explications.html#item-1-4"> Explication</a><br />
</div>
</div>
</div>
<div class="card bg-info">
<div class="card-header" id="headingTwo">
<h2 class="mb-0">
<button class="btn btn-link text-dark font-weight-bold btn-block text-center collapsed" type="button"
data-toggle="collapse" data-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
<h2 class="h4">Chiffrement Par Transposition</h2>
</button>
</h2>
</div>
<div id="collapseTwo" class="collapse" aria-labelledby="headingTwo" data-parent="#algoBox">
<div class="card-body">
<div>
<label for="transpoSimple" class="h4"><input type="radio" id="transpoSimple" name="algo" value="transpoSimple" onclick="initAlgo()">
Transposition Simple</label>
<a class="lienCours font-weight-bold" href="explications.html#item-2"> Explication</a><br />
</div>
<div>
<label for="transpoDouble" class="h4"><input type="radio" id="transpoDouble" name="algo" value="transpoDouble" autocomplete="off" onclick="initAlgo()">
Double Transposition</label> <a class="lienCours font-weight-bold" href="explications.html#item-2"> Explication</a><br />
</div>
</div>
</div>
</div>
<div class="card bg-info">
<div class="card-header" id="headingThree">
<h2 class="mb-0">
<button class="btn btn-link text-dark font-weight-bold btn-block text-center collapsed" type="button"
data-toggle="collapse" data-target="#collapseThree" aria-expanded="false"
aria-controls="collapseThree">
<h2 class="h4">Autre methodes</h2>
</button>
</h2>
</div>
<div id="collapseThree" class="collapse" aria-labelledby="headingThree" data-parent="#algoBox">
<div class="card-body" class="h4">
Autre algos
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-8">
<form class="form-group">
<p><label for="cipherKey" id="keyLabel" class="mt-4">Clé de Chiffrement: </label>
<select class="mr-2" id="affineKey1" required>
<option selected disabled>Inversibles mod26 dans Z/26Z</option>
</select>
<input class="mr-2" type="text" id="cipherKey" placeholder="CLE" pattern="[A-Za-z]+" required >
<span id="validity" ></span>
</p>
<div id="rst" class="text-justify pl-1 m-1"></div>
<p class="mt-2"><label for="textField">Entrer votre texte ici ↷ </label></p>
<textarea class="form-control" id="textField" rows="8" placeholder="NB: Seules les caratères alphabetiques seront traitées
Les autres caracteres seront automatiquement supprimées" required></textarea>
<div id="holder" class="mt-2">
</div>
<button type="button" id="btnChiffrer" class="btn btn-primary mt-3 mr-4"> Chiffrer</button>
<button type="button" id="btnDechiffer" class="btn btn-primary mt-3" > Déchiffrer</button>
</form>
</div>
</div>
</div>
<noscript> Oooups, Javascript est désactivé sur votre navigateur, Certaines fonctionalités du site ne pourront
pas s'executer ! </noscript>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/5.0.0-alpha1/js/bootstrap.min.js"
integrity="sha384-oesi62hOLfzrys4LxRF63OJCXdXDipiYWBnvTl9Y9/TRlw5xlKIEHpNyvvDShgf/"
crossorigin="anonymous"></script>
<script type="text/javascript" src="/scripts/main.js" ></script>
</body>
</html>