Debian Codegraph @

po/fr/man3/encrypt.3.po

raw
1 # French translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Christophe Blaess <https://www.blaess.fr/christophe/>, 1996-2003.
5 # Stéphan Rafin <[email protected]>, 2002.
6 # Thierry Vignaud <[email protected]>, 1999, 2002.
7 # François Micaux, 2002.
8 # Alain Portal <[email protected]>, 2003-2008.
9 # Jean-Philippe Guérard <[email protected]>, 2005-2006.
10 # Jean-Luc Coulon (f5ibh) <[email protected]>, 2006-2007.
11 # Julien Cristau <[email protected]>, 2006-2007.
12 # Thomas Huriaux <[email protected]>, 2006-2008.
13 # Nicolas François <[email protected]>, 2006-2008.
14 # Florentin Duneau <[email protected]>, 2006-2010.
15 # Simon Paillard <[email protected]>, 2006, 2013, 2014.
16 # Denis Barbier <[email protected]>, 2006, 2010, 2011.
17 # David Prévot <[email protected]>, 2010, 2012-2014.
18 # Jean-Pierre Giraud <[email protected]>, 2023-2024.
19 msgid ""
20 msgstr ""
21 "Project-Id-Version: manpages-l10n 4.21.0\n"
22 "POT-Creation-Date: 2026-06-05 06:23+0200\n"
23 "PO-Revision-Date: 2024-03-04 19:18+0100\n"
24 "Last-Translator: Jean-Pierre Giraud <[email protected]>\n"
25 "Language-Team: French <[email protected]>\n"
26 "Language: fr\n"
27 "MIME-Version: 1.0\n"
28 "Content-Type: text/plain; charset=UTF-8\n"
29 "Content-Transfer-Encoding: 8bit\n"
30 "Plural-Forms: nplurals=2; plural=n > 1;\n"
31 "X-Generator: Lokalize 22.12.3\n"
32
33 #. type: TH
34 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
35 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
36 #, no-wrap
37 msgid "encrypt"
38 msgstr "encrypt"
39
40 #. type: TH
41 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
42 #: opensuse-tumbleweed
43 #, no-wrap
44 msgid "2026-02-08"
45 msgstr "8 février 2026"
46
47 #. type: TH
48 #: archlinux debian-unstable
49 #, no-wrap
50 msgid "Linux man-pages 6.18"
51 msgstr "Pages du manuel de Linux 6.18"
52
53 #. type: SH
54 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
55 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
56 #, no-wrap
57 msgid "NAME"
58 msgstr "NOM"
59
60 #. type: Plain text
61 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
62 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
63 msgid "encrypt, setkey, encrypt_r, setkey_r - encrypt 64-bit messages"
64 msgstr ""
65 "encrypt, setkey, encrypt_r, setkey_r - Crypter des messages de 64\\ bits"
66
67 #. type: SH
68 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
69 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
70 #, no-wrap
71 msgid "LIBRARY"
72 msgstr "BIBLIOTHÈQUE"
73
74 #. type: Plain text
75 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
76 #: opensuse-leap-16-1 opensuse-tumbleweed
77 msgid "Password hashing library (I<libcrypt>,\\ I<-lcrypt>)"
78 msgstr "Bibliothèque hachage de mot de passe (I<libcrypt>,\\ I<-lcrypt>)"
79
80 #. type: SH
81 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
82 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
83 #, no-wrap
84 msgid "SYNOPSIS"
85 msgstr "SYNOPSIS"
86
87 #. type: Plain text
88 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
89 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
90 #, no-wrap
91 msgid ""
92 "B<#define _XOPEN_SOURCE> /* See feature_test_macros(7) */\n"
93 "B<#include E<lt>unistd.hE<gt>>\n"
94 msgstr ""
95 "B<#define _XOPEN_SOURCE> /* Consultez feature_test_macros(7) */\n"
96 "B<#include E<lt>unistd.hE<gt>>\n"
97
98 #. type: Plain text
99 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
100 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
101 #, no-wrap
102 msgid "B<[[deprecated]] void encrypt(char >I<block>B<[64], int >I<edflag>B<);>\n"
103 msgstr "B<[[obsolète]] void encrypt(char >I<block>B<[64], int >I<edflag>B<);>\n"
104
105 #. type: Plain text
106 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
107 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
108 #, no-wrap
109 msgid ""
110 "B<#define _XOPEN_SOURCE> /* See feature_test_macros(7) */\n"
111 "B<#include E<lt>stdlib.hE<gt>>\n"
112 msgstr ""
113 "B<#define _XOPEN_SOURCE> /* Consultez feature_test_macros(7) */\n"
114 "B<#include E<lt>stdlib.hE<gt>>\n"
115
116 #. type: Plain text
117 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
118 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
119 #, no-wrap
120 msgid "B<[[deprecated]] void setkey(const char *>I<key>B<);>\n"
121 msgstr "B<[[obsolète]] void setkey(const char *>I<key>B<);>\n"
122
123 #. type: Plain text
124 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
125 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
126 #, no-wrap
127 msgid ""
128 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
129 "B<#include E<lt>crypt.hE<gt>>\n"
130 msgstr ""
131 "B<#define _GNU_SOURCE> /* Consultez feature_test_macros(7) */\n"
132 "B<#include E<lt>crypt.hE<gt>>\n"
133
134 #. type: Plain text
135 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
136 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
137 #, no-wrap
138 msgid ""
139 "B<[[deprecated]] void setkey_r(const char *>I<key>B<, struct crypt_data *>I<data>B<);>\n"
140 "B<[[deprecated]] void encrypt_r(char *>I<block>B<, int >I<edflag>B<,>\n"
141 "B< struct crypt_data *>I<data>B<);>\n"
142 msgstr ""
143 "B<[[obsolète]] void setkey_r(const char *>I<key>B<, struct crypt_data *>I<data>B<);>\n"
144 "B<[[obsolète]] void encrypt_r(char *>I<block>B<, int >I<edflag>B<,>\n"
145 "B< struct crypt_data *>I<data>B<);>\n"
146
147 #. type: SH
148 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
149 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
150 #, no-wrap
151 msgid "DESCRIPTION"
152 msgstr "DESCRIPTION"
153
154 #. type: Plain text
155 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
156 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
157 msgid ""
158 "These functions encrypt and decrypt 64-bit messages. The B<setkey>() "
159 "function sets the key used by B<encrypt>(). The I<key> argument used here "
160 "is an array of 64 bytes, each of which has numerical value 1 or 0. The "
161 "bytes key[n] where n=8*i-1 are ignored, so that the effective key length is "
162 "56 bits."
163 msgstr ""
164 "Ces fonctions chiffrent et déchiffrent des messages de 64\\ bits. La "
165 "fonction B<setkey>() permet de fournir la clef à utiliser pour B<encrypt>(). "
166 "L'argument I<key> est une table de 64\\ octets, chacun ayant la valeur\\ 0 "
167 "ou \\ 1. Les octets key[n] où n=8*i-1 sont ignorés, ce qui ramène la clef à "
168 "56\\ bits effectifs."
169
170 #. type: Plain text
171 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
172 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
173 msgid ""
174 "The B<encrypt>() function modifies the passed buffer, encoding if I<edflag> "
175 "is 0, and decoding if 1 is being passed. Like the I<key> argument, also "
176 "I<block> is a bit vector representation of the actual value that is "
177 "encoded. The result is returned in that same vector."
178 msgstr ""
179 "La fonction B<encrypt>() modifie le tampon transmis, en l'encodant si "
180 "l'argument I<edflag> vaut 0, et en le décodant s'il vaut 1. L'argument "
181 "I<block> est, comme l'argument I<key>, une représentation de la valeur "
182 "réelle à encoder sous forme de vecteur de bits. Le résultat est renvoyé dans "
183 "le même vecteur."
184
185 #. type: Plain text
186 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
187 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
188 msgid ""
189 "These two functions are not reentrant, that is, the key data is kept in "
190 "static storage. The functions B<setkey_r>() and B<encrypt_r>() are the "
191 "reentrant versions. They use the following structure to hold the key data:"
192 msgstr ""
193 "Ces deux fonctions ne sont pas réentrantes, c'est-à-dire que la clef est "
194 "stockée dans une zone de stockage statique. Les fonctions B<setkey_r>() et "
195 "B<encrypt_r>() sont des versions réentrantes. Elles utilisent la structure "
196 "suivante pour contenir la clef\\ :"
197
198 #. type: Plain text
199 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
200 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
201 #, no-wrap
202 msgid ""
203 "struct crypt_data {\n"
204 " char keysched[16 * 8];\n"
205 " char sb0[32768];\n"
206 " char sb1[32768];\n"
207 " char sb2[32768];\n"
208 " char sb3[32768];\n"
209 " char crypt_3_buf[14];\n"
210 " char current_salt[2];\n"
211 " long current_saltbits;\n"
212 " int direction;\n"
213 " int initialized;\n"
214 "};\n"
215 msgstr ""
216 "struct crypt_data {\n"
217 " char keysched[16 * 8];\n"
218 " char sb0[32768];\n"
219 " char sb1[32768];\n"
220 " char sb2[32768];\n"
221 " char sb3[32768];\n"
222 " char crypt_3_buf[14];\n"
223 " char current_salt[2];\n"
224 " long current_saltbits;\n"
225 " int direction;\n"
226 " int initialized;\n"
227 "};\n"
228
229 #. type: Plain text
230 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
231 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
232 msgid "Before calling B<setkey_r>() set I<data-E<gt>initialized> to zero."
233 msgstr ""
234 "Avant d'appeler B<setkey_r>(), définissez I<data-E<gt>initialized> à zéro."
235
236 #. type: SH
237 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
238 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
239 #, no-wrap
240 msgid "RETURN VALUE"
241 msgstr "VALEUR RENVOYÉE"
242
243 #. type: Plain text
244 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
245 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
246 msgid "These functions do not return any value."
247 msgstr "Ces routines ne renvoient pas de valeur."
248
249 #. type: SH
250 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
251 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
252 #, no-wrap
253 msgid "ERRORS"
254 msgstr "ERREURS"
255
256 #. type: Plain text
257 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
258 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
259 msgid ""
260 "Set I<errno> to zero before calling the above functions. On success, "
261 "I<errno> is unchanged."
262 msgstr ""
263 "Définissez I<errno> à zéro avant d'appeler les fonctions ci-dessus. Si elles "
264 "réussissent, I<errno> n'est pas modifiée."
265
266 #. type: TP
267 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
268 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
269 #, no-wrap
270 msgid "B<ENOSYS>"
271 msgstr "B<ENOSYS>"
272
273 #. type: Plain text
274 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
275 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
276 msgid ""
277 "The function is not provided. (For example because of former USA export "
278 "restrictions.)"
279 msgstr ""
280 "La fonction n'est pas disponible. (Par exemple, à cause des restrictions "
281 "américaines sur l'exportation de routines cryptographiques.)"
282
283 #. type: SH
284 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
285 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
286 #, no-wrap
287 msgid "ATTRIBUTES"
288 msgstr "ATTRIBUTS"
289
290 #. type: Plain text
291 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
292 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
293 msgid ""
294 "For an explanation of the terms used in this section, see B<attributes>(7)."
295 msgstr ""
296 "Pour une explication des termes utilisés dans cette section, consulter "
297 "B<attributes>(7)."
298
299 #. type: tbl table
300 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
301 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
302 #, no-wrap
303 msgid "Interface"
304 msgstr "Interface"
305
306 #. type: tbl table
307 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
308 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
309 #, no-wrap
310 msgid "Attribute"
311 msgstr "Attribut"
312
313 #. type: tbl table
314 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
315 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
316 #, no-wrap
317 msgid "Value"
318 msgstr "Valeur"
319
320 #. type: tbl table
321 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
322 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
323 #, no-wrap
324 msgid ".na\n"
325 msgstr ".na\n"
326
327 #. type: tbl table
328 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
329 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
330 #, no-wrap
331 msgid ".nh\n"
332 msgstr ".nh\n"
333
334 #. type: tbl table
335 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
336 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
337 #, no-wrap
338 msgid ""
339 "B<encrypt>(),\n"
340 "B<setkey>()"
341 msgstr ""
342 "B<encrypt>(),\n"
343 "B<setkey>()"
344
345 #. type: tbl table
346 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
347 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
348 #, no-wrap
349 msgid "Thread safety"
350 msgstr "Sécurité des threads"
351
352 #. type: tbl table
353 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
354 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
355 #, no-wrap
356 msgid "MT-Unsafe race:crypt"
357 msgstr "MT-Unsafe race:crypt"
358
359 #. type: tbl table
360 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
361 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
362 #, no-wrap
363 msgid ""
364 "B<encrypt_r>(),\n"
365 "B<setkey_r>()"
366 msgstr ""
367 "B<encrypt_r>(),\n"
368 "B<setkey_r>()"
369
370 #. type: tbl table
371 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
372 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
373 #, no-wrap
374 msgid "MT-Safe"
375 msgstr "MT-Safe"
376
377 #. type: SH
378 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
379 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
380 #, no-wrap
381 msgid "STANDARDS"
382 msgstr "NORMES"
383
384 #. type: TP
385 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
386 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
387 #, no-wrap
388 msgid "B<encrypt>()"
389 msgstr "B<encrypt>()"
390
391 #. type: TQ
392 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
393 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
394 #, no-wrap
395 msgid "B<setkey>()"
396 msgstr "B<setkey>()"
397
398 #. type: Plain text
399 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
400 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
401 msgid "POSIX.1-2008."
402 msgstr "POSIX.1-2008."
403
404 #. type: TP
405 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
406 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
407 #, no-wrap
408 msgid "B<encrypt_r>()"
409 msgstr "B<encrypt_r>()"
410
411 #. type: TQ
412 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
413 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
414 #, no-wrap
415 msgid "B<setkey_r>()"
416 msgstr "B<setkey_r>()"
417
418 #. type: Plain text
419 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
420 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
421 msgid "None."
422 msgstr "Aucune."
423
424 #. type: SH
425 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
426 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
427 #, no-wrap
428 msgid "HISTORY"
429 msgstr "HISTORIQUE"
430
431 #. type: Plain text
432 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
433 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
434 msgid "Removed in glibc 2.28."
435 msgstr "Supprimée dans la glibc 2.28."
436
437 #. type: Plain text
438 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
439 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
440 msgid ""
441 "Because they employ the DES block cipher, which is no longer considered "
442 "secure, these functions were removed from glibc. Applications should switch "
443 "to a modern cryptography library, such as B<libgcrypt>."
444 msgstr ""
445 "Parce qu'elles emploient le chiffrement par bloc DES, qui n'est plus "
446 "considéré comme sûr, ces fonctions ont été retirées de la glibc. Les "
447 "applications devraient passer à une bibliothèque de chiffrement moderne "
448 "telle que B<libgcrypt>."
449
450 #. type: Plain text
451 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
452 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
453 msgid "POSIX.1-2001, SUS, SVr4."
454 msgstr "POSIX.1-2001, SUS, SVr4."
455
456 #. type: SS
457 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
458 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
459 #, no-wrap
460 msgid "Availability in glibc"
461 msgstr "Disponibilité dans la glibc"
462
463 #. type: Plain text
464 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
465 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
466 msgid "See B<crypt>(3)."
467 msgstr "Consultez B<crypt>(3)."
468
469 #. type: SS
470 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
471 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
472 #, no-wrap
473 msgid "Features in glibc"
474 msgstr "Fonctionnalités dans la glibc"
475
476 #. type: Plain text
477 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
478 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
479 msgid "In glibc 2.2, these functions use the DES algorithm."
480 msgstr "Dans la glibc\\ 2.2, ces fonctions utilisent l'algorithme DES."
481
482 #. type: SH
483 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
484 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
485 #, no-wrap
486 msgid "EXAMPLES"
487 msgstr "EXEMPLES"
488
489 #. type: Plain text
490 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
491 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
492 #, no-wrap
493 msgid ""
494 "#define _XOPEN_SOURCE\n"
495 "#include E<lt>crypt.hE<gt>\n"
496 "#include E<lt>stdio.hE<gt>\n"
497 "#include E<lt>stdlib.hE<gt>\n"
498 "#include E<lt>unistd.hE<gt>\n"
499 "\\&\n"
500 "int\n"
501 "main(void)\n"
502 "{\n"
503 " char key[64];\n"
504 " char orig[9] = \"eggplant\";\n"
505 " char buf[64];\n"
506 " char txt[9];\n"
507 "\\&\n"
508 " for (size_t i = 0; i E<lt> 64; i++) {\n"
509 " key[i] = rand() & 1;\n"
510 " }\n"
511 "\\&\n"
512 " for (size_t i = 0; i E<lt> 8; i++) {\n"
513 " for (size_t j = 0; j E<lt> 8; j++) {\n"
514 " buf[i * 8 + j] = orig[i] E<gt>E<gt> j & 1;\n"
515 " }\n"
516 " setkey(key);\n"
517 " }\n"
518 " printf(\"Before encrypting: %s\\[rs]n\", orig);\n"
519 "\\&\n"
520 " encrypt(buf, 0);\n"
521 " for (size_t i = 0; i E<lt> 8; i++) {\n"
522 " for (size_t j = 0, txt[i] = \\[aq]\\[rs]0\\[aq]; j E<lt> 8; j++) {\n"
523 " txt[i] |= buf[i * 8 + j] E<lt>E<lt> j;\n"
524 " }\n"
525 " txt[8] = \\[aq]\\[rs]0\\[aq];\n"
526 " }\n"
527 " printf(\"After encrypting: %s\\[rs]n\", txt);\n"
528 "\\&\n"
529 " encrypt(buf, 1);\n"
530 " for (size_t i = 0; i E<lt> 8; i++) {\n"
531 " for (size_t j = 0, txt[i] = \\[aq]\\[rs]0\\[aq]; j E<lt> 8; j++) {\n"
532 " txt[i] |= buf[i * 8 + j] E<lt>E<lt> j;\n"
533 " }\n"
534 " txt[8] = \\[aq]\\[rs]0\\[aq];\n"
535 " }\n"
536 " printf(\"After decrypting: %s\\[rs]n\", txt);\n"
537 " exit(EXIT_SUCCESS);\n"
538 "}\n"
539 msgstr ""
540 "#define _XOPEN_SOURCE\n"
541 "#include E<lt>crypt.hE<gt>\n"
542 "#include E<lt>stdio.hE<gt>\n"
543 "#include E<lt>stdlib.hE<gt>\n"
544 "#include E<lt>unistd.hE<gt>\n"
545 "\\&\n"
546 "int\n"
547 "main(void)\n"
548 "{\n"
549 " char key[64];\n"
550 " char orig[9] = \"eggplant\";\n"
551 " char buf[64];\n"
552 " char txt[9];\n"
553 "\\&\n"
554 " for (size_t i = 0; i E<lt> 64; i++) {\n"
555 " key[i] = rand() & 1;\n"
556 " }\n"
557 "\\&\n"
558 " for (size_t i = 0; i E<lt> 8; i++) {\n"
559 " for (size_t j = 0; j E<lt> 8; j++) {\n"
560 " buf[i * 8 + j] = orig[i] E<gt>E<gt> j & 1;\n"
561 " }\n"
562 " setkey(key);\n"
563 " }\n"
564 " printf(\"Avant chiffrement : %s\\[rs]n\", orig);\n"
565 "\\&\n"
566 " encrypt(buf, 0);\n"
567 " for (size_t i = 0; i E<lt> 8; i++) {\n"
568 " for (size_t j = 0, txt[i] = \\[aq]\\[rs]0\\[aq]; j E<lt> 8; j++) {\n"
569 " txt[i] |= buf[i * 8 + j] E<lt>E<lt> j;\n"
570 " }\n"
571 " txt[8] = \\[aq]\\[rs]0\\[aq];\n"
572 " }\n"
573 " printf(\"Après chiffrement : %s\\[rs]n\", txt);\n"
574 "\\&\n"
575 " encrypt(buf, 1);\n"
576 " for (size_t i = 0; i E<lt> 8; i++) {\n"
577 " for (size_t j = 0, txt[i] = \\[aq]\\[rs]0\\[aq]; j E<lt> 8; j++) {\n"
578 " txt[i] |= buf[i * 8 + j] E<lt>E<lt> j;\n"
579 " }\n"
580 " txt[8] = \\[aq]\\[rs]0\\[aq];\n"
581 " }\n"
582 " printf(\"Après déchiffrement : %s\\[rs]n\", txt);\n"
583 " exit(EXIT_SUCCESS);\n"
584 "}\n"
585
586 #. SRC END
587 #. type: SH
588 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
589 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
590 #, no-wrap
591 msgid "SEE ALSO"
592 msgstr "VOIR AUSSI"
593
594 #. type: Plain text
595 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
596 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
597 msgid "B<cbc_crypt>(3), B<crypt>(3), B<ecb_crypt>(3)"
598 msgstr "B<cbc_crypt>(3), B<crypt>(3), B<ecb_crypt>(3)"
599
600 #. type: TH
601 #: debian-trixie
602 #, no-wrap
603 msgid "2024-06-15"
604 msgstr "15 juin 2024"
605
606 #. type: TH
607 #: debian-trixie
608 #, no-wrap
609 msgid "Linux man-pages 6.9.1"
610 msgstr "Pages du manuel de Linux 6.9.1"
611
612 #. type: Plain text
613 #: debian-trixie
614 msgid "Password hashing library (I<libcrypt>, I<-lcrypt>)"
615 msgstr "Bibliothèque hachage de mot de passe (I<libcrypt>, I<-lcrypt>)"
616
617 #. type: TH
618 #: fedora-44 fedora-rawhide
619 #, no-wrap
620 msgid "2024-07-23"
621 msgstr "23 juillet 2024"
622
623 #. type: TH
624 #: fedora-44 fedora-rawhide
625 #, no-wrap
626 msgid "Linux man-pages 6.13"
627 msgstr "Pages du manuel de Linux 6.13"
628
629 #. type: TH
630 #: mageia-cauldron
631 #, no-wrap
632 msgid "Linux man-pages 6.17"
633 msgstr "Pages du manuel de Linux 6.17"
634
635 #. type: TH
636 #: opensuse-leap-16-1 opensuse-tumbleweed
637 #, no-wrap
638 msgid "Linux man-pages (unreleased)"
639 msgstr "Pages du manuel de Linux (non publiées)"